Ajax, filters and shortcodes

When WordPress displays post content, it’s not running do_shortcode() on the post content, it’s running apply_filters( 'the_content', $content ). Shortcode filters are applied on the_content filter, which is why you have to add extra filters to get them to work in widgets or the footer or elsewhere.

Leave a Comment