asp_suggested_phrases
Allowsaccess to the Suggested Phrases (beneath the search bar) on certain conditions.
1
apply_filters('asp_suggested_phrases', array $phrases, int $search_id);
Copied!

Parameters

  • $phrases(array) - Array containing the keywords.
  • $search_id (int) - Search instance ID

Usage

1
add_filter( 'asp_suggested_phrases', 'asp_custom_suggested_phrases', 10, 2 );
2
function asp_custom_suggested_phrases( $phrases, $search_id ) {
3
return array('keyword 1', 'keyword 2');
4
}
Copied!
Last modified 1yr ago
Copy link