Found it, but would still be nice to have a setting for it … 😉
Snippet or mu-plugin:
add_filter( 'metaslider_capability', '__return_false');
Actually that doesn’t work as expected, as it also removes the menu items etc.
And from what I can tell the code doesn’t add possibilities for removing it with a simple snippet, but please tell me how to do it if I’m wrong …
Hi,
Please add the following code below to your functions.php to hide the Add Slideshow button from the classic editor.
add_action( 'init', 'remove_filters' );
function remove_filters(){
global $wp_filter;
foreach($wp_filter['media_buttons']->callbacks[10] as $filter_callback => $value) {
if(strpos($filter_callback, 'insert_metaslider_button') !== false) {
unset($wp_filter['media_buttons']->callbacks[10][$filter_callback]);
}
}
}