MyListing Club

Hide Taxonomies From Quick Search

Building better MyListing websites. One code snippet at a time.

Overview

The Hide Taxonomies From Quick Search code snippet allows for more flexibility within a MyListing website.

Implementation

  1. Grab the code snippet.
  2. Follow the provided instructions.
  3. Save your changes.
				
					//// INSTRUCTIONS: 
//// Copy and paste the code snippet below into the child theme's functions.php file.
//// You can edit the functions.php file from your WordPress dashboard (Appearance > Theme Editor) or via FTP.

--------------------------- CODE SNIPPET IS BELOW THIS LINE --------------------------- 

// HIDE CATEGORIES
add_filter( 'mylisting/quicksearch/show-categories', '__return_false' );

// HIDE REGIONS
add_filter( 'mylisting/quicksearch/show-regions', '__return_false' );

//HIDE TAGS
add_filter( 'mylisting/quicksearch/show-tags', '__return_false' );