AP_Update_Helper::restore_last_updated( $_post )
Description #
Restore last_updated date of question and answer.
Source #
File: admin/update.php
public function restore_last_updated( $_post ) { global $wpdb; $last_updated = get_post_meta( $_post->ID, '_ap_updated', true ); $wpdb->update( $wpdb->ap_qameta, [ 'last_updated' => $last_updated ], [ 'post_id' => $_post->ID ], [ '%s' ] ); // @codingStandardsIgnoreLine delete_post_meta( $_post->ID, '_ap_updated' ); }
Expand full source code Collapse full source code View on GitHub: admin/update.php:387
Add your comment