[Resolved] Adding functions to WP Hooks

Home Forums Support [Resolved] Adding functions to WP Hooks

Home Forums Support Adding functions to WP Hooks

  • This topic has 3 replies, 2 voices, and was last updated 5 years ago by David.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #826627
    Scott

    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!

    #826630
    David
    Staff
    Customer Support

    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/

    #826793
    Scott

    Thanks – That worked!

    #826892
    David
    Staff
    Customer Support

    You’re welcome

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.