Last active
April 20, 2017 18:09
-
-
Save craigsimps/f1d00790a53c3cf9ed1c6a9718547c98 to your computer and use it in GitHub Desktop.
This file contains 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 | |
/** | |
* Create new 'meta_content` filter. | |
* | |
* Recreate the default filters applied to `the_content`, | |
* so content retrieved using `get_post_meta` can be | |
* formatted in the same way. | |
*/ | |
add_filter( 'meta_content', 'wptexturize' ); | |
add_filter( 'meta_content', 'convert_smilies' ); | |
add_filter( 'meta_content', 'convert_chars' ); | |
add_filter( 'meta_content', 'wpautop' ); | |
add_filter( 'meta_content', 'shortcode_unautop' ); | |
add_filter( 'meta_content', 'prepend_attachment' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment