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
CSS & JS
Index Table Related
asp_index_on_save_stop
asp_indexing_keywords
asp_indexing_string_pre_process
asp_indexing_string_post_process
asp_post_content_before_tokenize_clear
asp_post_content_before_tokenize
asp_post_excerpt_before_tokenize
asp_post_title_before_tokenize
asp_file_contents_before_tokenize
asp_post_permalink_before_tokenize
asp_index_terms
asp_post_custom_field_before_tokenize
asp_index_cf_contents_before_tokenize
asp_index_before_shortcode_execution
asp_index_after_shortcode_execution
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_index_after_shortcode_execution
Post content/excerpt/other field filtered after the shortcodes have been executed and before they are sent to tokenization.
1
apply_filters('asp_index_after_shortcode_execution', $content, $post);
Copied!
Parameters
$content
(string)
- post content/excerpt or any other field eligible for shortcode execution
$post
(WP_Post) - post type object
The return value should always be an
string
Sample usage
1
add_filter
(
'asp_index_after_shortcode_execution'
,
'asp_change_cf_index'
,
10
,
3
);
2
function
asp_change_cf_index
(
$content
,
$post
)
{
3
return
$content
.
'my custom text'
;
4
}
Copied!
Previous
asp_index_before_shortcode_execution
Next - Hooks
Templating
Last modified
1yr ago
Copy link
Contents
Parameters
Sample usage