original_string: public function add_filters()
      {
          // check if WYSIWYG is enabled 
          if ( get_user_option('rich_editing') )
          {
              add_filter( 'mce_external_plugins', array( $this, 'register_plugin' ) ); 
              add_filter( 'mce_buttons'.($this->config['row'] > 1 ? '_'.$this->config['row'] : ''), array( $this, 'register_button' ) ); 
          }
      }
code: public function add_filters()
      {
          // check if WYSIWYG is enabled 
          if ( get_user_option('rich_editing') )
          {
              add_filter( 'mce_external_plugins', array( $this, 'register_plugin' ) ); 
              add_filter( 'mce_buttons'.($this->config['row'] > 1 ? '_'.$this->config['row'] : ''), array( $this, 'register_button' ) ); 
          }
      }
code_tokens: public function add_filters ( ) { // check if WYSIWYG is enabled  if ( get_user_option ( 'rich_editing' ) ) { add_filter ( 'mce_external_plugins' , array ( $ this , 'register_plugin' ) ) ; add_filter ( 'mce_buttons' . ( $ this -> config [ 'row' ] > 1 ? '_' . $ this -> config [ 'row' ] : '' ) , array ( $ this , 'register_button' ) ) ; } }
docstring: Add a button to the tinyMCE editor, if the user has the required settings.
docstring_tokens: Add a button to the tinyMCE editor if the user has the required settings .