Archived topic
Why does not work 'wp_enquque_scripts' as a custom hook
1 reply · Started by Sukjoon on July 1, 2022
I'd like to use GP Hook Element.
I am setting 'wp_enquque_scripts' on 'Custom Hook Name' field, but seems not working.
After I enter the 'wp_enquque_scripts' then click "Save" button, the field become blank.
How can I use custom hook? Why 'wp_enquque_scripts' not work as custom hook?
Hi there,
the GP Elements are built for the injection of 'content' in the Theme templates. Therefore many of the core WP hooks are not accessible for security and good practice reasons.
You will need to use one of the methods explained here: