Hide Search Options

Hide search options using code

If you want to hide one or multiple search options from jobs and requests, it had to be done using code and proceeded as follows:

Please go to cPanel > File Manager > wp-content > public_html > themes > wpjobster-child > Edit ‘functions.php’ 


Add one of the codes from below depending on which filter you are looking to hide (and if its for jobs or requests) > Save Changes

To hide Search Term for jobs

add_filter( 'wpj_job_search_display_search_term_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Search Terms for requests

add_filter( 'wpj_request_search_display_search_term_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Location for jobs 

add_filter( 'wpj_job_search_display_location_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Radius (kilometers) from requests

add_filter( 'wpj_request_search_display_radius_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Categories from jobs

add_filter( 'wpj_job_search_display_categories_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Categories from requests

add_filter( 'wpj_request_search_display_categories_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Tags for jobs

add_filter( 'wpj_request_search_display_tags_filter', 'wpj_hide_search_fields_child' ); 
function wpj_hide_search_fields_child() {
	return false;
}

To hide Tags for requests

add_filter( 'wpj_job_search_display_tags_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Minimum Rating for jobs

add_filter( 'wpj_job_search_display_min_rating_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Price type for jobs

add_filter( 'wpj_job_search_display_price_type_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Minimum Price for jobs

add_filter( 'wpj_job_search_display_min_price_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Minimum Price for requests

add_filter( 'wpj_request_search_display_min_price_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Maximum Price for jobs

add_filter( 'wpj_job_search_display_max_price_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Maximum price for requests

add_filter( 'wpj_request_search_display_max_price_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Deadline for requests

add_filter( 'wpj_request_search_display_deadline_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Delivery for jobs

add_filter( 'wpj_job_search_display_delivery_days_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Delivery for requests

add_filter( 'wpj_request_search_display_delivery_days_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide Date for Requests

add_filter( 'wpj_request_search_display_date_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}

To hide multiple fields from jobs, requests or both:

add_filter( 'wpj_request_search_display_date_filter', 'wpj_hide_search_fields_child' );
add_filter( 'wpj_job_search_display_delivery_days_filter', 'wpj_hide_search_fields_child' );
add_filter( 'wpj_request_search_display_delivery_days_filter', 'wpj_hide_search_fields_child' );
function wpj_hide_search_fields_child() {
	return false;
}