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_before_shortcode_execution
Post content filtered before the shortcodes are executed and before they are sent to tokenization.
Use it to initialize custom shortcodes excplicitly, manipulate or to add custom shortcodes or any other content to the given field.
apply_filters('asp_index_before_shortcode_execution', $content, $post);
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
add_filter
(
'asp_index_before_shortcode_execution'
,
'asp_change_cf_index'
,
10
,
3
);
function
asp_change_cf_index
(
$content
,
$post
)
{
return
$content
.
' [my_additional_shortcode]'
;
}
Previous
asp_index_cf_contents_before_tokenize
Next
asp_index_after_shortcode_execution
Last modified
1yr ago
Copy link
Outline
Parameters
Sample usage