_is_specific_search_query( $specific_search_queries ); case 'excludedSearchQueries': return ! $this->_is_specific_search_query( $excluded_search_queries ); default: return false; } } /** * "is specirfic serach query" Condition logic. * * @param array $specific_search_queries Array of search queries. * @return boolean Indicating whether "is specirfic serach query" Condition is true or false. */ protected function _is_specific_search_query( $specific_search_queries ) { $is_specific_search_query = false; foreach ( $specific_search_queries as $search_query ) { $is_specific_search_query = get_search_query() === $search_query; if ( $is_specific_search_query ) { break; } } return $is_specific_search_query; } }