Created
March 6, 2017 11:42
-
-
Save kish2011/a3bc9e4e9805b39ac5b38485354c28f0 to your computer and use it in GitHub Desktop.
count-jobs.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @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