Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\TypeSafePostRepository::update_deprecated_post_meta PHP Method

update_deprecated_post_meta() private method

Updates the meta value for the given post (i.e., deletes the deprecated key and uses the correct one).
private update_deprecated_post_meta ( integer $post_id ) : void
$post_id integer Post ID.
return void
    private function update_deprecated_post_meta($post_id)
    {
        if (update_post_meta($post_id, PostRepository::META_KEY, true)) {
            delete_post_meta($post_id, PostRepository::DEPRECATED_META_KEY);
        }
    }