• Resolved timothyf

    (@timothyf)


    I want to remove the MailPoet button added to the row of buttons in the TinyMCE page/post editor so that my client will never click on that button. My client is the curious type who will test whatever is available, and I’ve already removed other buttons that I don’t want him to use. How do I remove the MailPoet button from that row? TIA, Tim

    https://wordpress.org/plugins/wysija-newsletters/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try this code:

    add_action('admin_init', 'mailpoet_remove_tinymce_subscription_form_icon');
    function mailpoet_remove_tinymce_subscription_form_icon(){
        if(defined('WYSIJA')){
            $helper_back = WYSIJA::get( 'back' , 'helper' );
            remove_action('admin_head-post-new.php',array($helper_back,'addCodeToPagePost'));
            remove_action('admin_head-post.php',array($helper_back,'addCodeToPagePost'));
        }
    }

    Add it to your functions.php file inside your current theme folder.

    Thread Starter timothyf

    (@timothyf)

    Perfect! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing button from TinyMCE editor’ is closed to new replies.