This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Hiding Search Bar

#51693
Ernest MarcinkoErnest Marcinko
Keymaster

Sure!

I assume you only want to apply this rule to the first search bar (id=1), then this modified version will do the trick:

add_filter( 'asp_shortcode_output', function( $output, $id ){
	if ( $id != 1 ) {
		return $output;
	}
	if ( get_the_ID() !== 389 ) {
		return '';
	}

	return $output;
}, 10, 2 );