Site logo

[Support request] A definitive generatepress hooks list

Home Forums Support [Support request] A definitive generatepress hooks list

Home Forums Support A definitive generatepress hooks list

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2130152
    Elvis

    Sorry if this exists, but I looked in documentation and searched the forum with no results.

    I am aware of this: Visual Guide and this All Hooks as well as this All Filters

    But hooks such as: generate_color_option_defaults, generate_option_defaults, generateblocks_default_block_styles, generate_page_hero_background_image_url are not there.

    The reason I am asking this is that I am new to GP & GB (now new to development) so I have so many questions and feel a bit bad asking so much.
    If there were docs about these things, I would ask less.

    Thanks in advance.

    #2130202
    Elvin
    Staff
    Customer Support

    Hi Elvis,

    Unfortunately, that’s the most we have of the documented actions and filters.

    If you wish to browser around further, you can access GeneratePress’ repository and search do_action and apply_filters
    https://github.com/tomusborne/generatepress

    GP Premium’s hooks and filters are yet to be added.

    The rest are found here –
    https://docs.generatepress.com/collection/hooks/
    https://docs.generatepress.com/collection/filters/

    But these collection links may be incomplete as well.

    The reason I am asking this is that I am new to GP & GB (now new to development) so I have so many questions and feel a bit bad asking so much.
    If there were docs about these things, I would ask less.

    Don’t feel bad about it. 🙂 That’s what we’re here for. Feel free to ask. 😀

    #2134996
    Elvis

    Thanks Elvin,
    I’ll look it up in the repo. It might be nice learning experience too. 🙂
    best,
    E

    #2135941
    Elvin
    Staff
    Customer Support

    Some of the hooks are on GP Premium plugin’s side of coding.

    For that one, you may have to use the plugin editor and search through there. You can also search through your copy of the gp-premium.zip file.

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