wp_print_footer_scripts
Action HookDescription
Fires when footer scripts are printed.Hook Information
File Location |
wp-includes/script-loader.php
View on GitHub
|
Hook Type | Action |
Line Number | 2282 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into wp_print_footer_scripts
add_action('wp_print_footer_scripts', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/script-loader.php:2282
- How this hook is used in WordPress core
<?php
2277 /**
2278 * Fires when footer scripts are printed.
2279 *
2280 * @since 2.8.0
2281 */
2282 do_action( 'wp_print_footer_scripts' );
2283 }
2284
2285 /**
2286 * Wrapper for do_action( 'wp_enqueue_scripts' ).
2287 *
PHP Documentation
<?php
/**
* Fires when footer scripts are printed.
*
* @since 2.8.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-includes/script-loader.php
Related Hooks
Related hooks will be displayed here in future updates.