Site logo

Archived topic

Can't set Custom Hook Name

1 reply · Started by Greg on December 8, 2021

Viewing posts 1–2 of 2

Hi there,

Hook element isn't meant to be used as an alternative to run code snippets like the Code Snippets plugin and a child theme's functions.php as it is meant for presentation purposes only.(adding simple HTML or dynamic value to the front-end) While some may run, it isn't meant for filtering things as issues like this can occur.

If you wish to run this you should do it as suggested here - https://docs.generatepress.com/article/adding-php/

This archived topic is closed to new replies.