I want to check if any action/filter exists in the Wordpress theme.
I have tried has_action
and has_filter
. But the problem with these functions is that if the hook/filter exists and no callbacks are added to the hook or all callbacks are removed from the hook, these will return false.