Skip to content

Instantly share code, notes, and snippets.

@Pseric
Created March 5, 2014 03:44
Show Gist options
  • Save Pseric/9360770 to your computer and use it in GitHub Desktop.
Save Pseric/9360770 to your computer and use it in GitHub Desktop.
add_filter('mce_buttons','wysiwyg_editor');
function wysiwyg_editor($mce_buttons) {
$pos = array_search('wp_more',$mce_buttons,true);
if ($pos !== false) {
$tmp_buttons = array_slice($mce_buttons, 0, $pos+1);
$tmp_buttons[] = 'wp_page';
$mce_buttons = array_merge($tmp_buttons, array_slice($mce_buttons, $pos+1));
}
return $mce_buttons;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment