Skip to content

Instantly share code, notes, and snippets.

@remcotolsma
Created March 7, 2014 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remcotolsma/9411383 to your computer and use it in GitHub Desktop.
Save remcotolsma/9411383 to your computer and use it in GitHub Desktop.
<?php
// With this filter you check wich filter breaks 'the_content'
function test_the_content( $content ) {
echo strlen( $content ), '<br />';
}
add_filter( 'the_content', 'test_the_content', 0 );
add_filter( 'the_content', 'test_the_content', 1 );
add_filter( 'the_content', 'test_the_content', 10 );
add_filter( 'the_content', 'test_the_content', 20 );
add_filter( 'the_content', 'test_the_content', 100 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment