Viewing 1 replies (of 1 total)
  • Plugin Author Shazzad Hossain Khan

    (@sajib1223)

    Cool. Use the following code in your theme or in a plugin.

    class Hide_W4PL_Tinymce extends W4PL_Tinymce {
      function __construct(){
        add_action( 'init', array($this, 'init'), 11 );
      }
    
      public function init()
      {
        if( ! is_admin() && ! current_user_can('delete_users') ){
          remove_action( 'init', array($this, 'register_tinymce_button') );
        }
      }
    }
      new Hide_W4PL_Tinymce;
Viewing 1 replies (of 1 total)
  • The topic ‘Hide button in editor (at least in frontend)?’ is closed to new replies.