Removing actions and filters since 2.0
-
Hello there!
I use Storefront as a parent theme on many sites. Usually, my child theme includes a few
remove_action
calls to either remove some elements outright or move them around in the page order.Since 2.0, Storefront has been rewritten using classes instead of prefixed functions. Example: what used to be performed by the
storefront_add_customizer_css
function is now done in theadd_customizer_css
of theStorefront_Customizer
class. Furthermore, the instance used when hooking into WordPress is anonymous. It seems that if I want to remove the action, I can no longer just callremove_action
because I do not have a reference to the instance. Google gives me this kind of workaround, which I don’t really want to have to do.Is there any plan to make the Storefront classes behave like singletons and provide a class method to retrieve their unique instance?
- The topic ‘Removing actions and filters since 2.0’ is closed to new replies.