Unmodified do_shortcode
is effectively a filter on the_content
with priority 11. Your filter has priority 10. So it runs before the shortcode is evaluated and it won’t affect the post you put inside your page with a shortcode.
Now, you would think that the filter should also be triggered when the post inside the page is retrieved. This, however, is not necessarily true. The filter is only triggered when the content is retrieved with the_content
, not with get_the_content
.
Depending on what your modifications are, you may get the desired result if you set the priority on your filter to 99 or so, forcing the shortcode to be evaluated before the filter is applied.
Related Posts:
- Which filter to use to pre-parse form elements, which are generated by plugin’s shortcode?
- Caption Shortcode: what filter to change the image size?
- Difference Between Filter and Action Hooks?
- How to create an API for my plugin?
- PHP error with shortcode handler from a class
- How to add sub-menu to a menu generated by wp_nav_menu by using plugin
- Add self-closing shortcode button to TinyMCE in WP 4.6
- How can I load a page template from a plugin?
- Optimize shortcode callbacks
- How to get the post excerpt using post object?
- Using a custom shortcode from within the template of a shortcode plugin
- When echoing my own shortcode, it keeps adding a 1 at the end of my blogpost
- Remove an action by extending class and replacing it
- hook filter after the_content on a specific page
- Automating the process of shortcode generation in a plugin – how is it done?
- Bind a function with its own argument to show something dynamically after every content
- Create Widget or Enable Shortcodes in Sidebar
- Hook add_attachment error
- Call to undefined function is_home() or any conditional tags
- shortcode executed in the page editor
- WooCommerce change Tax Class programmatically when Recalculating an existing Order [closed]
- Shortcode not appearing when used as post content in wp_insert_post() or possibly, shortcode not being registered at all
- How to make my shortcode load scripts and styles, from within the plugin?
- Update variable value via add_filter
- How to display the categories on page using shortcode?
- Shortcode conflicts
- How to create ShortCode
- How to display the specific post content by using POST ID
- Make wordpress join default user metas with a column from another table while displaying the wp_users table on the users screen
- How to output functions from plugin inside theme
- Configure WordPress to Generate Scheme-less Relative URLs
- add_filter img_caption_shortcode not implemented
- Gravity Forms Anchor only on Front Page?
- shortcode tags not working in do_shortcode
- How to find list of all functions bind to a particular hook from my plugin?
- Include HTML (Bootstrap Modal Box) with a plugin into my header
- How to insert HTML/CSS/JS into my iframe plugin?
- WP_NAV_MENU filter targets all menus
- Including template in shortcodes
- Modify a plugin function output from another plugin
- Form submission to another page returning 404 error [duplicate]
- Passing values between enclosing and enclosed shortcodes
- Adding filter to the title without affecting the menu title
- How to validate inputs with filter in register_setting callback
- How do i remove the title from a specific page
- Can / should a widget plugin define its own Widget Area?
- How to get changed post title in my custom plug-in which fires when ‘save_post’ is called?
- Is there an action_filter hook to add content before the post title?
- Adding tables to dashboard pages programmatically?
- post content and shortcode content displaying out of order
- Can I attach a plugin via my add_filter callback contents?
- Font size of HTML content
- Cannot output plugin twice with shortcode
- Paragraph Tags removed when contents are only a shortcode
- How to call a function from a shortcode function in an oop plugin
- How to Create custom block for displaying information in content section which act like shortcode
- apply_filters() and call_user_func() to define and call a function outside a class
- add_filter postbox_classes multiple post types
- WPGut – Updating failed and shortcode?
- How to write a custom shortcode name book?
- Override category archive page title (not the head title)
- Limit get_next_post to posts from the same author
- By adding “?login – failed” code unable to access my dashboard
- How can I pass WP_Query results to a plugin?
- How can we stop showing short code in create or edit post section
- Override woocommerce loop-start.php from theme using plugin?
- Any way, hook to add content right before the “read more” link?
- Shortcode content is not showing. Only the [shortcode-tag] is showing
- Including content into an add_shortcode() function
- WordPress Plugin Boilerplate – add actions and/or filters based on user’s role
- Redirect theme directory to plugin theme directory
- Pass javascript result to shortcode executer function
- WordPress Reset password Strength set to medium
- Change Front page displays settings conditionally when user is online
- Some data has already been output, can’t send PDF file – fpdf issue in WordPress
- login_message filter not working
- Add_action not calling callback function
- I have a plugin where in I have to change the title of the page dynamically by sending parameter to the_title filter
- WordPress Dropdown image select
- How do I make two shortcode use the same id and increment it when I use them multiple times?
- Shortcode from a plugin not working
- Modify search form with plugin
- Single_template for a custom post type created from a plugin is returning an empty page
- get_comment_meta() for a filter hook in a plugin
- Custom signature appears twice on page
- Confusing $tag specification for apply_filters call, in core options.php code
- Hook for plugin to show content for certain urls
- How to filter get_adjacent_post()?
- Is there a way to tell if a shorcode’s handler is being run before or after the content formatting filter?
- WordPress permalink setting
- How to add conent (text) to Add New pages form of admin in WordPress
- post_results filter confused by pagination in sidebar and main section
- shortcode which is introduced into entry the blog, and appears in side bar
- Do a summary based on sections in a post
- Children Shortcodes?
- Wrapping shortcodes in another shortcode
- Identifying a Page Containing Shortcode at `init`
- Cannot echo a JS variable to a jQuery plugin coming from wp_localize_script
- How to show custom taxonomy child posts through shortcode in WordPress
- Multi-part form and wp_redirect()