[Support request] Help with code for hook

Home Forums Support Help with code for hook

  • This topic has 3 replies, 3 voices, and was last updated 4 months ago by David.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1304140
    Maria

    I created a Page with a container block that I’d like to hook into the generate_before_footer_hook on my pages. What PHP code would I need to do this? page-id-1200

    #1304337
    Leo
    Staff
    Customer Support

    Hi there,

    Not sure if I fully understand.

    What code are you trying to add?

    Have you tried using the display rules in the hooks element?

    #1304387
    Maria

    I’m trying to hook content into the generate_before_footer_hook area. I created the content in a new page (page-id-1200). A container block, background image, grid, icons. I want to insert that “block” in my pages using the generate_before_footer_hook. Isn’t there a function that would get the page? I don’t know how to write the function.

    function get_page( $page, $output = OBJECT, $filter = ‘raw’ ) {
    return get_post( $page, $output, $filter );
    }

    #1304611
    David
    Staff
    Customer Support

    Hi there,

    we’re working on an update for GPP 1.11 which will allow you to do that.
    Currently – although you can do it with code, it will not import the blocks styles….

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