WordPress.org

Forums

Formating the_content() (3 posts)

  1. Cory.Nickerson
    Member
    Posted 2 years ago #

    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.

  2. Jose Castaneda
    THEME COFFEE MONKEY
    Posted 2 years ago #

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

  3. alchymyth
    Forum Moderator
    Posted 2 years ago #

    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'     );

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.