update wordpress manually code example

Example 1: how to update wordpress

see here:
https://www.wpbeginner.com/beginners-guide/ultimate-guide-to-upgrade-wordpress-for-beginners-infograph/

Example 2: wordpress post revisions config

// Inside wp-config.php -> LIMIT POST REVISIONS to 8
define( 'WP_POST_REVISIONS', 8 );

Example 3: update query wordpress

global $wpdb;
$dbData = array();
$dbData['last_login_time'] = time();

$wpdb->update('table_name', $dbData, array('user_id' => 1));

Example 4: update wordpress query

$wpdb->query($wpdb->prepare("UPDATE $table_name SET time=$current_timestamp WHERE userid=$userid"));

Example 5: update wordpress query

$execut= $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->users SET user_nicename = %d WHERE ID = %s", "Harde_Bande", 546 ) );
var_dump($execut);

Tags:

Php Example