Action: jb_job_is_approved

do_action( 'jb_job_is_approved', $post_id, $post )

Fires after Job has been approved.

Parameters:
Name Type Description
$post_id int

Post ID.

$post WP_Post

The post object.

Since:
  • 1.1.0
Source:
Example

Updates job post meta after approving.

function my_custom_jb_job_is_approved( $job_id, $job ) {
    update_post_meta( $job_id, 'set_some_meta_key_after_approve', true );
}
add_action( 'jb_job_is_approved', 'my_custom_jb_job_is_approved', 10, 2 );