Support » Plugin: Edit Flow » What's the correct way to check for custom status?

  • Hi,

    I am trying to run a function within a plugin that is run when the post editor page loads. I am trying to check for current custom EditFlow status but this might not be working, hence the question of whether this is the best way to check for a custom status.

    $post = get_post($post_id);
     if ($post->post_status =='assigned') {
    $post->post_status = 'in-progress'; // use any post status
    wp_update_post($post);
    }

    Thanks!

    https://wordpress.org/plugins/edit-flow/

  • The topic ‘What's the correct way to check for custom status?’ is closed to new replies.