WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
<?php echo do_shortcode('[mingleforum]'); ?>

inserts the mingle forum into my content!

is it possible to use add_filter() on that?

share|improve this question
To filter what? What are you trying to achieve? – Bainternet Apr 3 '11 at 14:05
This plugin uses a lot of weird and bad inline styles like <div style="padding:10px" etc. I want to get rid of that on the serverside. I just wonder if that's possible! – mathiregister Apr 3 '11 at 14:47
up vote 3 down vote accepted

You can change your code to this:

$shortcode = do_shortcode('[mingleforum]');
echo apply_filters('my_new_filter',$shortcode);

and then you can interact with that filter


function my_new_filter_callback($shortcode){
    //to stuff here
    return $shortcode;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.