Site logo

Archived topic

Adding functions to WP Hooks

3 replies · Started by Scott on March 2, 2019

Viewing posts 1–4 of 4

I added the following code to GP Hooks in the wp_footer section. (It was given to me by WP Product Review tech support). I should limit the description length for their tables but doesn't seem to be working. Did I put it in the right place? Their instructions were to add it to a child theme functions file but I don't have a child theme set up.

THANKS!

Hi there,

Hooks should only be used for adding content or data to the site / template.
Without a child theme you can use the Code Snippets plugin, you'll find a link to it in here where it explains a little more about PHP

https://docs.generatepress.com/article/adding-php/

Thanks - That worked!

You're welcome

This archived topic is closed to new replies.