Skip to content

Instantly share code, notes, and snippets.

@turtlepod
Last active November 3, 2017 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turtlepod/94a6dcf29a6405ca55977ea24b00422f to your computer and use it in GitHub Desktop.
Save turtlepod/94a6dcf29a6405ca55977ea24b00422f to your computer and use it in GitHub Desktop.
Listify: Remove Types Filter & Labels Filters
<?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