Triggered after the opening body tag.
Source
do_action( 'wp_body_open' );
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |
Triggered after the opening body tag.
do_action( 'wp_body_open' );
Version | Description |
---|---|
5.2.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Backward Compatibility
A conditional check can make it compatible with older WordPress versions.
For More Information: https://make.wordpress.org/themes/2019/03/29/addition-of-new-wp_body_open-hook/
wp_open_body is the new way to you can add a new sticky header from anywhere you want
Basic usage:
For more information read this post: https://generatewp.com/wordpress-5-2-action-that-every-theme-should-use/