Archived topic
Can't set Custom Hook Name
1 reply · Started by Greg on December 8, 2021
GP is active theme
Only active plugin is GP Premium
After saving settings, Custom Hook Name is blank
https://www.dropbox.com/s/uk1f610c1hr9zu5/GP%20Custom%20Hook%20Name.mov?dl=0
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/