SyndicatedPost::fix_post_modified_ts PHP Méthode

fix_post_modified_ts() public méthode

So, wp_insert_post() is not going to do the last-modified assignments for us. If you want something done right....
public fix_post_modified_ts ( string $new_status, string $old_status, object $post )
$new_status string Unused action parameter.
$old_status string Unused action parameter.
$post object The database record for the post just inserted.
    function fix_post_modified_ts($new_status, $old_status, $post)
    {
        global $wpdb;
        if ($new_status != 'inherit') {
            // Bail if we are creating a revision.
            $wpdb->update($wpdb->posts, array('post_modified' => $this->post['post_modified'], 'post_modified_gmt' => $this->post['post_modified_gmt']), array('ID' => $post->ID));
        }
    }