RSS hook job_feed_args not working
-
Hi there!
I’ve applied a hook to modified the query params for the RSS feed to include our custom parameters but the hook never gets fired. In fact, the function WP_Job_Manager_Post_Types::job_feed doesn’t seems to get called at all.
Has anyone experienced the same issue?
How can I resolve this?
Thanks!
This is my code…
add_filter('job_feed_args', 'pcs_job_feed_args'); function pcs_job_feed_args($query_args) { if ( !empty( $_GET['filter_industry']) ) { $query_args['tax_query'][] = array( 'taxonomy' => 'industry-category', 'field' => 'term_id', 'terms' => explode(',', $_GET['filter_industry']) ); } if ( !empty( $_GET['filter_region']) ) { $query_args['tax_query'][] = array( 'taxonomy' => 'job-regions', 'field' => 'term_id', 'terms' => explode(',', $_GET['filter_region']) ); } return $query_args; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘RSS hook job_feed_args not working’ is closed to new replies.