WordPress在内容输出之前对其应用各种过滤器。过滤器do_shortcode
是处理短代码的。您可以使用以下代码将所有相同的过滤器应用于编辑器的输出:
echo apply_filters( \'the_content\', get_option( \'piedino_plugin_var_testo\' ) );
以下是应用于的所有筛选器的列表
the_content
:
add_filter( \'the_content\', \'capital_P_dangit\', 11 );
add_filter( \'the_content\', \'wptexturize\' );
add_filter( \'the_content\', \'convert_smilies\', 20 );
add_filter( \'the_content\', \'wpautop\' );
add_filter( \'the_content\', \'shortcode_unautop\' );
add_filter( \'the_content\', \'prepend_attachment\' );
add_filter( \'the_content\', \'wp_make_content_images_responsive\' );
add_filter( \'the_content\', \'do_shortcode\', 11 ); // AFTER wpautop()