wp_body_open
Action HookDescription
Triggered after the opening body tag.Hook Information
File Location |
wp-includes/general-template.php
View on GitHub
|
Hook Type | Action |
Line Number | 3224 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into wp_body_open
add_action('wp_body_open', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/general-template.php:3224
- How this hook is used in WordPress core
<?php
3219 /**
3220 * Triggered after the opening body tag.
3221 *
3222 * @since 5.2.0
3223 */
3224 do_action( 'wp_body_open' );
3225 }
3226
3227 /**
3228 * Displays the links to the general feeds.
3229 *
PHP Documentation
<?php
/**
* Triggered after the opening body tag.
*
* @since 5.2.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-includes/general-template.php
Related Hooks
Related hooks will be displayed here in future updates.