WordPress custom post action hook

As @Pieter said, you can use transition_post_status:

function wpse_187997_job_status( $new_status, $old_status, $post ) {
    if ( $post->post_type === 'job' && $new_status !== $old_status ) {
         // Post type "job" and status has changed
    }
}

add_action( 'transition_post_status', 'wpse_187997_job_status', 10, 3 );

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)