Action hooks (developers)
Current hooks in wProject
wProject includes hooks that can be valuable for developers looking to extend the product. These hooks have self-explanatory names:
before_wp_head
after_wp_head
before_body_end
after_body_end
after_body_start
side_nav
before_side_nav
help_start
How to use a hook
In this example, “Hello World!” will be displayed before the side navigation.
/* Header */
function my_custom_function() { ?>
Hello world!
<?php }
add_action( 'before_side_nav', 'my_custom_function' );
For more advanced usage and examples, you can refer to the official WordPress developer documentation.
Last modified 1 year and 1 month ago
Was this page helpful?
Yes
No
How can this page be improved?
Thanks!
Other stuff
- Is wProject a theme or a plugin?
- Action hooks (developers)
- Widget support
- Can users register to access wProject?
- Are there any add-ons available?
- Roles
- Can you help me with my own modifications?
- Supported languages
- Maintenance options
- Where can I read the changelog?
- The wProject Health Check
- How to move your license(s) to a new domain
- Downloading an older version of wProject
- I need help with something else