在以下代码段中,您将看到附加到标题、内容和;摘录(摘自/wp includes/default filters.php)。尝试在第一次尝试中删除诸如大写P dangit、笑脸之类的内容,如果这不起作用,请删除更重要的内容。我只会这样做,直到帖子保存,然后把东西搬走,或者把它包装成一个if ( is_single( $post->ID ) )
语句不会在其他地方触发它。
foreach ( array( \'the_content\', \'the_title\' ) as $filter )
remove_filter( $filter, \'capital_P_dangit\', 11 );
// Display filters
remove_filter( \'the_title\', \'wptexturize\' );
remove_filter( \'the_title\', \'convert_chars\' );
remove_filter( \'the_title\', \'trim\' );
remove_filter( \'the_content\', \'wptexturize\' );
remove_filter( \'the_content\', \'convert_smilies\' );
remove_filter( \'the_content\', \'convert_chars\' );
remove_filter( \'the_content\', \'wpautop\' );
remove_filter( \'the_content\', \'shortcode_unautop\' );
remove_filter( \'the_content\', \'prepend_attachment\' );
remove_filter( \'the_excerpt\', \'wptexturize\' );
remove_filter( \'the_excerpt\', \'convert_smilies\' );
remove_filter( \'the_excerpt\', \'convert_chars\' );
remove_filter( \'the_excerpt\', \'wpautop\' );
remove_filter( \'the_excerpt\', \'shortcode_unautop\');
remove_filter( \'get_the_excerpt\', \'wp_trim_excerpt\' );