so I would like to execute a filter or something that works on every shortcode
Looks like you’re after do_shortcode_tag. It “Filters the output created by a shortcode callback.”.
Aurovrata Venet gives a demo usage similar to:
add_filter( 'do_shortcode_tag',function ($output, $tag, $attr){
//make sure it is the right shortcode
if('aShortcode' != $tag){
return $output;
}
//you can even check for specific attributes
if(!isset($attr['id'])){
return $output;
}
$output .= '.. do somthing ..';
return $output;
},10,3);
Related Posts:
- apply_filters(‘the_content’, $content) vs do_shortcode($content)
- How to get shortcode’s input values inside a filter?
- Filter specific shortcode output?
- Insert Custom HTML After Shortcode
- Is there a way to add another row to the tinyMCE kitchen sink toggle?
- add_filter and changing output captions of image gallery
- How to add attribute to output with wp_video_shortcode add_filter
- Search content for shortcodes and get parameters
- Change default settings used by gallery shortcode
- Shortcodes not resolved in AJAX call response
- Ajax, filters and shortcodes
- Format content value from DB outside of WordPress filters
- How to link current user to their author page through shortcodes
- filter title from shortcode
- how to remove filter from wordpress shortcode output
- Error when overriding only some audio shortcode HTML output
- How to use shortcode attribute in separate function
- Shortcodes — Using add_action, add_filter in the shortcode
- How to pass variables to custom filter from multiple functions
- How to filter backend post list showing only posts having a shortcode
- How can I return shortcode output to the top of the content?
- the_excerpt filter doesn’t work as expected
- run shortcode in excerpt of single custom post type
- Filter everything from content except output of a shortcode
- Something is filtering my shortcodes… Can’t figure out what
- How to use do_shortcode_tag to modify the output of a shortcode?
- Shortcodes within the sidebar text/html widget: How to preserve the raw HTML output of the shortcode?
- How to change dynamically page title according to variable data?
- How can I filter tag_description()?
- WordPress removing slashes from shortcode output
- How to remove shortcode(s) from WYSIWYG Page editor for Non Admins
- Shortcode / plugin with custom (flexible) output
- Filter Shortcodes when using get_page
- Parse a shortcode differently based on on what it’s nested in
- Need to return shortcode text instead of the output
- add_filter to the_content after apply_filters
- post_orderby filter breaks function
- the_content getting current page content instead specified ID
- Override wordpress audio playlist
- How to wrap pattern-matches from the_content in [wiki]-shortcode tags
- Add Index to Item in WordPress Gallery
- create a shortcode with acf including a filter
- How to take shortcode and content separately from a page?
- Auto-generated excerpt with shortcode and read more button/text link
- shortcode function outputs multiple anchor tags
- apply_filters to $GLOBALS
- Change shortcode output (filter?)
- Is it possible to include the add_filter() function within a shortcode function
- Activate short codes for all post queries?
- Problem with shortcodes in external file
- How can I display wp_link_pages before a shortcode, if it is used, or display after content?
- Custom wp_query time filter on meta_value
- get post id within add_filter()
- Run posts_where and posts_join only on the main query
- Modify page title and subtitle with a plugin
- Media upload default title from file name
- Admin post list – adding an option to the date filter dropdown
- Use of comment_reply_link_args filter
- Alter existing page contents based on url
- Error using wp_mail inside custom function
- Add/remove CRON action depending on variable
- Stripping URLs & Email from post submissions
- comment_for() Custom fields not visible when user is logged in
- How to include add_filter() in a condition based on $post data
- Admin: how to make a custom list filter button send GET queryvars
- Filter authors on meta value
- Override email_exists function
- Access post ID in “content_save_pre”
- Is this hook really deprecated? ( manage_{$taxonomy}_custom_column )
- arguments for comment_notification_text filter
- Gallery stripped from excerpt of post
- Add_filter rel=”prettyphoto” to WP3.4.1
- BuddyPress – A hook available to hide custom born date on public profile view?
- How can i filter wordpress users by custom feild?
- How to Create custom block for displaying information in content section which act like shortcode
- How to filter the source URL of all images on every page
- auth_redirect() doesn’t send users to the page where they orginally tried to acces
- How to redirect a unique link based on login status
- Custom sort orderby question
- Is it possible to assign a css id to a row in plugins list table?
- How to bridge the gap between dynamic back-end data and front-end output?
- How to loop year & month condition together to filter correctly via AJAX?
- How to add_filter only when content is not empty?
- Filter template text
- How do I isolate the reason a wordpress filter is not running?
- add_filter not working inside if function
- Publish button inside custom field group
- How to filter posts in admin by before date or by post status ‘future’?
- Custom search fields and AJAX support
- Strip shortcode from excerpt [duplicate]
- How to separate a specific page’s comments from other comments
- add_filter with specific thumb names
- Override typo in multiple parent theme files?
- Replace image scr with it’s surrounding href
- WooCommerce comments_template Filter Not Firing
- str_replace css meta tag?
- Footnotes with dynamic title attributes?
- This code works, but breaks the media uploader. How do I integrate it in a way that won’t?
- Using the REST API filter, including two meta_queries breaks the response for one custom post type
- Are blocks that are converted to patterns no longer filterable through the_content?