Guest User

Untitled

a guest
Nov 19th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. //Modify TinyMCE editor to hide H1.
  2. function tiny_mce_remove_unused_formats( $initFormats ) {
  3. // Add block format elements you want to show in dropdown
  4. $initFormats['block_formats'] = 'Paragraph=p;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre';
  5. return $initFormats;
  6. }
  7. add_filter( 'tiny_mce_before_init', 'tiny_mce_remove_unused_formats' );
Add Comment
Please, Sign In to add comment