How to Remove Add Slider Button In Post Editor
-
I have try to search around but got no solution. I am developing a theme and I have included Meta Slider.
The problem is I want to get rid of the Add Slider button in the Post Editor. I try to dig around the code and I found
class MetaSliderPlugin{ .. private function setup_filters() { .. add_filter( 'media_buttons_context', array( $this, 'insert_metaslider_button' ) ); .. } .. }
I try to remove the filter using the following code
$removebutton = new MetaSliderPlugin; remove_filter( 'media_buttons_context', array($removebutton, 'insert_metaslider_button' ) );
But the button is still there. Can anyone help me remove this button.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to Remove Add Slider Button In Post Editor’ is closed to new replies.