• Resolved yuncheol yeo

    (@yuncheol-yeo)


    Hello.
    Thanks for your work. I’m really appreciated of your work.
    I’m using Tiny MCE for text editor.

    here I’d like to remove wp-members icon on text editor.
    I think It can be set by ‘css’ like ‘display:none’.

    pls let me know how to do it.
    here is the screenshot what I’m talking about.

    https://snag.gy/RQMvLj.jpg

    Pls help me out.

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    Most things that are added to WP are added using actions and filters using the following WP functions:

    add_action()
    add_filter()

    Anything added this way can generally be removed with:

    remove_action()
    remove_filter()

    BUT… you have to apply the remove after it has been added but before it is acted on. That takes groking through the code to know where it is actually added so you can apply it appropriately.

    In the case of the WP-Members shortcode button, the action is defined during the admin initialization. WP-Members has an action hook after this process – wpmem_after_admin_init – that you can hook to in order to remove any actions added during initialization.

    The following added to your theme functions.php will remove the actions that add the button (thus removing the button):

    add_filter( 'wpmem_after_admin_init', function() {
    	remove_action( 'load-post.php',     'wpmem_load_tinymce' );
    	remove_action( 'load-post-new.php', 'wpmem_load_tinymce' );
    });
Viewing 1 replies (of 1 total)
  • The topic ‘Remove icon on text Editor’ is closed to new replies.