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
<!-- Line break in WordPress meta box text area: the PHP way --> | |
<?php echo nl2br( esc_html( get_post_meta( get_the_ID(), 'my-meta-field', true) ) ); ?> |
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 | |
/** | |
* Example filter to add text style to TinyMCE filter with Mark's "MRW TinyMCE Mods" plugin | |
* | |
* Adds a "Text Styles" submenu to the "Formats" dropdown | |
* | |
* This would go in a functions.php file or mu-plugin so you don't have to modify the original plugin. | |
* | |
* $styles array Contains arrays of style_format arguments to define styles. | |
* Note: Should be an "array of arrays" |