wp_head
Action HookDescription
Prints scripts or data in the head tag on the front end.Hook Information
File Location |
wp-includes/general-template.php
View on GitHub
|
Hook Type | Action |
Line Number | 3192 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into wp_head
add_action('wp_head', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/general-template.php:3192
- How this hook is used in WordPress core
<?php
3187 /**
3188 * Prints scripts or data in the head tag on the front end.
3189 *
3190 * @since 1.5.0
3191 */
3192 do_action( 'wp_head' );
3193 }
3194
3195 /**
3196 * Fires the wp_footer action.
3197 *
PHP Documentation
<?php
/**
* Prints scripts or data in the head tag on the front end.
*
* @since 1.5.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.