• Resolved mdotk

    (@mdotk)


    Hi, I only want to use the DB cleaner and scheduler. How can I ensure that every other function of this plugin is completely disabled?

    For instance, I see the images tab busy trying to do something, but I have a plugin for that stuff already.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support vupdraft

    (@vupdraft)

    Hi,

    Unfortunately, the plugin will automatically check for uncompressed images (there isn’t a setting to disable this). Everything else, you do have to activate. I will put it as a feature request on our internal development board.

    Thread Starter mdotk

    (@mdotk)

    Thanks @vupdraft some sort of setting would be great. Or even a filter we can plugin into the functions.php to disable. Really hope you can do this because the DB cleanup and scheduler is saving me right now ??

    Plugin Contributor Venkat Raj

    (@webulous)

    @mdotk Added to our to do list

    Plugin Contributor Venkat Raj

    (@webulous)

    @mdotk You could use this filter wp_optimize_sub_menu_items

    <?php
    add_action('admin_menu', 'wpo_filter_menu', 9);
    
    function wpo_filter_menu() {
    	add_filter('wp_optimize_sub_menu_items', 'wpo_remove_images_menu');
    }
    
    function wpo_remove_images_menu($sub_menu_items) {
    	foreach ($sub_menu_items as $key => $item) {
    	    if (isset($item['menu_slug']) && $item['menu_slug'] === 'wpo_images') {
        	    unset($sub_menu_items[$key]);
            	break;
    		}
    	}
    	return $sub_menu_items;
    }
    • This reply was modified 1 year, 6 months ago by Venkat Raj.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Only want to use the database options’ is closed to new replies.