-
aldrin151
Hi, when you create an Element -> Hook and specify in settings hook, for example generate_before_main_content and set priority to 8. If say you wanted to do a remove_action( ‘generate_before_main_content’, ‘xxxx’, 8 ); the hook you just created via functions.php…
What is the function name to be used in place of the xxxx?
Thank you
-
Fernando
Hi Aldrin,
There isn’t a function name. It’s hooked directly.
What you can do instead if you want to prevent the Hook from being “hooked” is to use the
generate_element_display
filter. Reference: https://docs.generatepress.com/article/generate_element_display/ -
aldrin151
That’s great! Thank you, that works.
-
Fernando
You’re welcome!
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.