Skip to content

Instantly share code, notes, and snippets.

@prionkor
Created August 4, 2016 18:20
Show Gist options
  • Save prionkor/4cd1270dfc61f08941df617047e6012b to your computer and use it in GitHub Desktop.
Save prionkor/4cd1270dfc61f08941df617047e6012b to your computer and use it in GitHub Desktop.
<?php
add_filter("mce_buttons", "tinymce_editor_buttons", 99); //targets the first line
add_filter("mce_buttons_2", "tinymce_editor_buttons2", 99); //targets the first line
function tinymce_editor_buttons() {
return array(
"bold",
"italic",
"strikethrough",
"bullist",
"numlist",
'blockquote',
"separator",
'alignleft',
'aligncenter',
'alignright',
'link',
'unlink',
'wp_adv'
);
}
function tinymce_editor_buttons2() {
return array(
"fontsizeselect",
"formatselect",
'underline',
'alignjustify',
'forecolor',
'pastetext',
'removeformat',
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment