Archived topic
Hook available to add custom Element Location Rules?
3 replies · Started by Eric on October 21, 2020
Hi
Is there a filter/action hook available where I can add custom Location Rules for additional Display conditionals for the Elements module?
Thanks
Eric
Hi there,
You cannot filter what is displayed in the Select list in the elements display rules. But it is possible to filter the display of an element using one of the available filters:
https://docs.generatepress.com/article/generate_hook_element_display/
https://docs.generatepress.com/article/generate_header_element_display/
https://docs.generatepress.com/article/generate_layout_element_display/
Hi David,
OK, thanks for the fast reply and helpful links.
Eric
Glad to be of help.