moxdev
1/19/2017 - 3:02 PM

Add font sizes to WordPress wysiwyg

Add font sizes to WordPress wysiwyg

function wp_editor_fontsize_filter( $buttons ) {
        array_shift( $buttons );
        array_unshift( $buttons, 'fontsizeselect');
        array_unshift( $buttons, 'formatselect');
        return $buttons;
}    
add_filter('mce_buttons_2', 'wp_editor_fontsize_filter');