Removing an action from an external plugin class

Maybe I got you wrong, but why don’t you just put the following line in your functions.php:

remove_action('eazyest_gallery_thumbnails', 'ezg_thumbnails');

If you have a class function hooked to an action, you can use the class name instead of the class object:

remove_action(
    'eazyest_gallery_thumbnails',
    array('EazyestFrontendClassName', 'ezg_thumbnails')
);

Right now, I don’t see why this wouldn’t be working. Just tried with an action from one of my plugins.

Leave a Comment