Last active
December 27, 2015 02:19
-
-
Save indrekots/7250913 to your computer and use it in GitHub Desktop.
A section from the default-filters.php file in Wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Display filters | |
add_filter( 'the_title', 'wptexturize' ); | |
add_filter( 'the_title', 'convert_chars' ); | |
add_filter( 'the_title', 'trim' ); | |
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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment