您可以将代码更改为:
<?php
$shortcode = do_shortcode(\'[mingleforum]\');
echo apply_filters(\'my_new_filter\',$shortcode);
?>
然后你就可以与过滤器进行交互
add_filter(\'my_new_filter\',\'my_new_filter_callback\');
function my_new_filter_callback($shortcode){
//to stuff here
return $shortcode;
}