Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: zed1.com TinyMCE tweaks
- Plugin URI: http://zed1.com/
- Description: Remove some buttons from the visual editor
- Author: Mike Little
- Version: 0.0.1
- Author URI: http://zed1.com/
- */
- add_filter( 'mce_buttons', 'mce_buttons_remove_some' );
- function mce_buttons_remove_some( $buttons ) {
- $buttons_to_remove = array( 'strikethrough', 'justifycenter' );
- return array_diff( $buttons, $buttons_to_remove);
- }
- add_filter( 'mce_buttons_2', 'mce_buttons_remove_some_2' );
- function mce_buttons_remove_some_2( $buttons ) {
- $buttons_to_remove = array( 'justifyfull', 'forecolor' );
- return array_diff( $buttons, $buttons_to_remove);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement