asp_suggested_phrases
Allowsaccess to the Suggested Phrases (beneath the search bar) on certain conditions.

apply_filters('asp_suggested_phrases', array $phrases, int $search_id);
- $phrases(array) - Array containing the keywords.
- $search_id (int) - Search instance ID
add_filter( 'asp_suggested_phrases', 'asp_custom_suggested_phrases', 10, 2 );
function asp_custom_suggested_phrases( $phrases, $search_id ) {
return array('keyword 1', 'keyword 2');
}
Last modified 3yr ago