Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
count-jobs.php
/*
* @see WP_Job_Manager_Ajax class line 211 wp_send_json( apply_filters( 'job_manager_get_listings_result', $result, $jobs ) );
*
*/
function custom_job_manager_get_listings_result($result, $jobs) {
$result['post_count'] = $jobs->found_posts;
return $result;
}
add_filter( 'job_manager_get_listings_result', 'custom_job_manager_get_listings_result',10,2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment