Is it possible to deactivate image optimizer and chide it from Swift dashboard?

You are here:
Estimated reading time: < 1 min
At the moment you can’t do it, however you can remove the menu item with PHP using wp hooks:
you could remove it from admin bar by placing this in functions.php
// remove image optimizer tab from admin bar
function mytheme_admin_bar_render() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu(‘swift-image-optimizer’);
}
add_action( ‘wp_before_admin_bar_render’, ‘mytheme_admin_bar_render’ );
Was this article helpful?
Dislike 0 0 of 0 found this article helpful.
Views: 32