• Which file contains the formatting code for the filter of the_content()? Cannot seem to find it. I’d like to see how it is formatting the content after it reads the plain texted stored in the database.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    It is found in /wp-includes/post-template.php file. Keep in mind that is the most up to date version I linked to.

    some initial filters are added in /wp-includes/default-filters.php

    for example:

    add_filter( 'the_content', 'post_formats_compat', 7 );
    add_filter( 'the_content', 'wptexturize'            );
    add_filter( 'the_content', 'convert_smilies'        );
    add_filter( 'the_content', 'convert_chars'          );
    add_filter( 'the_content', 'wpautop'                );
    add_filter( 'the_content', 'shortcode_unautop'      );
    add_filter( 'the_content', 'prepend_attachment'     );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Formating the_content()’ is closed to new replies.