Native timestamp on wp_options option

There’s no “updated” column in the wp_options table. mysql> describe wp_options; +————–+—————–+——+—–+———+—————-+ | Field | Type | Null | Key | Default | Extra | +————–+—————–+——+—–+———+—————-+ | option_id | bigint unsigned | NO | PRI | NULL | auto_increment | | option_name | varchar(191) | NO | UNI | | | | option_value | longtext … Read more

How to rename custom table name programatically in wordpress?

Yes, you can use the query function to rename tables. global $wpdb; $oldTable = $wpdb->prefix . “wpfd_docs”; $newTable = $wpdb->prefix . “ccdm_docs”; $renameOk = $wpdb->query(“RENAME TABLE ” . $oldTable . ” TO ” . $newTable); if( $renameOk ) { echo ‘All good’; }else{ echo ‘Failed to rename table. Last DB error: ‘ . $wpdb->last_error; }