Skip to content

Instantly share code, notes, and snippets.

@djm56
Last active November 23, 2016 14:19
Show Gist options
  • Save djm56/538733b5771a8f4fc5bf43d23fca0b3e to your computer and use it in GitHub Desktop.
Save djm56/538733b5771a8f4fc5bf43d23fca0b3e to your computer and use it in GitHub Desktop.
Show All TinyMCE in WordPress add this to functions.php in theme
<?php
/**
* Add the to functions.php
**/
function enable_more_buttons($buttons) {
$buttons[] = 'fontselect';
$buttons[] = 'fontsizeselect';
$buttons[] = 'styleselect';
$buttons[] = 'backcolor';
$buttons[] = 'newdocument';
$buttons[] = 'cut';
$buttons[] = 'copy';
$buttons[] = 'charmap';
$buttons[] = 'hr';
$buttons[] = 'visualaid';
$buttons[] = 'del';
$buttons[] = 'superscript';
$buttons[] = 'subscript';
$buttons[] = 'cleanup';
return $buttons;
}
add_filter('mce_buttons_3', 'enable_more_buttons');
function myformatTinyMCE( $in ) {
$in['wordpress_adv_hidden'] = FALSE;
return $in;
}
add_filter( 'tiny_mce_before_init', 'myformatTinyMCE' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment