I am using the Listify theme integrated with WP Job Manager.
So one of the functions in my theme is:
public function job_manager_job_filters_distance() {
//Show some HTML
}
And somewhere else in the document lies:
add_action( 'job_manager_job_filters_search_jobs_end', array( $this, 'job_manager_job_filters_distance' ), 0 );
I want to disable this function.
So naturally I went to my child theme's functions.php and added remove_action:
remove_action( 'job_manager_job_filters_search_jobs_end', 'job_manager_job_filters_distance' );
It didn't work. Then I tried different priorities for the removal:
remove_action( 'job_manager_job_filters_search_jobs_end', 'job_manager_job_filters_distance', 20 );
Still no go. Then I tried to wrap it in a function that triggers after theme load:
function remove_listify_junk() {
remove_action( 'job_manager_job_filters_search_jobs_end', 'job_manager_job_filters_distance' );
}
add_action( 'after_setup_theme', 'remove_listify_junk', 999 );
And the function is still doing it's thing =[...
What am I missing here?