491 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Won a Competition
  • Referred between 1000 and 1999 users
  • Author had a Free File of the Month
  • Author had a File in an Envato Bundle
  • Bought between 10 and 49 items
+3 more
pixelentity says

So, the solution we always used (and some other authors too) now seems to be no longer accepted by reviewers.

Result is, our latest theme got rejected due the above. Which is, frankly, quite shocking to me because that code only applies to our custom blocklevel shortcodes, doesn’t interfere in any way with the way wp works and just ignores any other native / 3rd party plugin defined shortcode.

So, should we assume that from now on, anything applied to “the_content” filter will just be rejected regardless its purpose ?

1 post
  • Bought between 1 and 9 items
  • Has been a member for 6-7 years
ashleeeeek says


@ Smuliii Thanks a lot Smuliii.. I’m not a PHP-addict, does it only need to paste the code in the end of functions.php? Or how?
Yep, and of course you want to change the shortcodes.

Hi Smuliii,

Could you post the code we need to place into functions.php to make this work? I’m not sure of the shortcodes I need to include.

Thanks, Ash

611 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
ChapterThemes says

So, the solution we always used (and some other authors too) now seems to be no longer accepted by reviewers.

Result is, our latest theme got rejected due the above. Which is, frankly, quite shocking to me because that code only applies to our custom blocklevel shortcodes, doesn’t interfere in any way with the way wp works and just ignores any other native / 3rd party plugin defined shortcode.

So, should we assume that from now on, anything applied to “the_content” filter will just be rejected regardless its purpose ?

Only reason i’ve heard that themes got rejected is because they’d removed the filter and added it back at some point.

But – besides that, i don’t get why everyone is creating all those functions.

Put in just 1 line:

add_filter('the_content', 'do_shortcode', 7);

And all the mess is gone.

by
by
by
by
by
by