Last active
November 3, 2017 04:18
-
-
Save turtlepod/94a6dcf29a6405ca55977ea24b00422f to your computer and use it in GitHub Desktop.
Listify: Remove Types Filter & Labels Filters
This file contains 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
<?php | |
/** | |
* Remove Types Filter Fields | |
* | |
* @link https://gist.github.com/turtlepod/94a6dcf29a6405ca55977ea24b00422f | |
*/ | |
add_action( 'init', function() { | |
// Remove the label. | |
remove_action( 'job_manager_job_filters_end', array( 'Listify_WP_Job_Manager_Template_Filters', 'job_types_label' ), 9 ); | |
// Remove the fields. | |
remove_action( 'job_manager_job_filters_end', array( WP_Job_Manager_Shortcodes::instance(), 'job_filter_job_types' ), 20 ); | |
}); | |
/** | |
* Remove Labels Filter Fields | |
* | |
* @link https://gist.github.com/turtlepod/94a6dcf29a6405ca55977ea24b00422f | |
*/ | |
add_action( 'init', function() { | |
// Remove labels filters. | |
remove_action( 'job_manager_job_filters_search_jobs_end', array( 'Astoundify\WPJobManager\ListingLabels\Listings', 'show_labels_filter' ), 10 ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment