K
K
Knowledge Base - Ajax Search Pro for WordPress
Buy Ajax Search Pro!
Documentation
Get Support
Search…
Knowledge Base
Safe Coding Guideline
Hooks
Filters
Query & Output
Search Results
asp_suggested_phrases
asp_results
asp_cpt_results
asp_buddyp_results
asp_attachment_results
asp_comment_results
asp_blog_results
asp_terms_results
asp_peepso_group_results
asp_peepso_activities_results
asp_only_non_keyword_results
asp_result_groups
CSS & JS
Index Table Related
Templating
Constants
Frontend Filters
Taxonomy Filters
Frontend filters API
Tips & Miscellaneous
Tutorials
Post Types
Taxonomy Terms
WooCommerce
Compatibility
Other
Other
ASP_Query
REST API
Building a custom REST API
Javascript API
Javascript Hooks
Changelog
Powered By
GitBook
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
);
Parameters
$phrases
(array) - Array containing the keywords.
$search_id
(int) - Search instance ID
Usage
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'
);
}
Previous
Search Results
Next
asp_results
Last modified
2yr ago
Copy link
Outline
Parameters
Usage