Keyword Suggestions
Keyword suggestion and autocomplete hooks
All suggestions
asp/suggestions/keywords
Hook to the final suggested keywords from all selected sources.
Parameters
$keywords (array) - the array of the suggersted keywords
$phrase (string) - the search phrase
Post Title Suggestions
asp/suggestions/post_type/query
Parameters
$query (string) - the final query before execution
$phrase (string) - the search phrase
asp/suggestions/post_type/results
Parameters
$keywords (array) - the array of the suggersted keywords
$posts (array[object]) - Array of Posts (ID and post_title)
WARNING! The $post argument in this hook is not an array of WP_Post objects! The items only have the ID and title columns ($post->ID, $post->post_title)
Taxonomy Term Suggestions
asp/suggestions/taxonomy/results
Parameters
$query (string) - the final query before execution
$phrase (string) - the search phrase
$taxonomy (string) - the taxonomy name
$args (array) - the arguments
Search Statistics Suggestions
asp/suggestions/statistics/query
Parameters
$query (string) - the final query before execution
$phrase (string) - the search phrase
asp/suggestions/statistics/results
Parameters
$keywords (array) - the array of the suggersted keywords
$posts (array) - Array of suggested keywords
Google Suggestions
asp/suggestions/google/url
Parameters
$url (string) - the google suggestions URL
$args (array) - the array of arguments for the suggestion
asp/suggestions/google/results
Parameters
$keywords (array) - the array of the suggersted keywords
$phrase (string) - the search phrase
Google Places API Suggestions
asp/suggestions/google/url
Parameters
$url (string) - the google suggestions URL
$args (array) - the array of arguments for the suggestion
asp/suggestions/google/results
Parameters
$keywords (array) - the array of the suggersted keywords
$phrase (string) - the search phrase
Last updated