Archived topic
Defaults Hooks
5 replies · Started by Krzysztof on August 26, 2014
It's possible to add defaults hooks (in GeneratePress Hooks) just like it's in ex. Generate Colors? (I mean add_filter('generate_color_option_defaults','...'); )
Hi there,
I'm not sure what you mean?
Wherever there is a hook or a filter you can definitely use it - just be careful :)
I mean that what is in GeneratePress Hooks: Before Header, After Header, After Right Sidebar Content etc. So it's possible to add filter for example to "generate_after_header"? This will be work: add_filter('generate_after_header','my_super_hiper_funcion'); ? :D
You wouldn't add a filter, but you would add an action:
add_action('generate_after_header','my_super_hiper_function');
This will "hook" the function into the "generate_after_header" hook.
This is basically what the GP Hooks addon does for you :)
Let me know if that makes sense.
Yep, it's work. Thanks a lot!
Btw. GeneratePress is awsome! Nice job :)
Thanks! :)