Created
March 2, 2017 18:38
-
-
Save 5A5K1A/bdde28b609a6ccdf4838375af49cace0 to your computer and use it in GitHub Desktop.
WordPress Tiny MCE Kitchensink
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 | |
/** | |
* Modify TinyMCE | |
* | |
* @param array $in | |
* @return array $in | |
*/ | |
function my_tiny_mce_before_init( $in ) { | |
# customize the buttons | |
// $in['theme_advanced_buttons1'] = 'bold,italic,underline,bullist,numlist,hr,blockquote,link,unlink,justifyleft,justifycenter,justifyright,justifyfull,outdent,indent'; | |
// $in['theme_advanced_buttons2'] = 'formatselect,pastetext,pasteword,charmap,undo,redo'; | |
# Keep the "kitchen sink" open: | |
$in[ 'wordpress_adv_hidden' ] = FALSE; | |
return $in; | |
} | |
add_filter( 'tiny_mce_before_init', 'my_tiny_mce_before_init' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment