print_footer_scripts
Filters whether to print the footer scripts.
Usage
add_filter( 'print_footer_scripts', 'wp_kama_print_footer_scripts_filter' );
/**
* Function for `print_footer_scripts` filter-hook.
*
* @param bool $print Whether to print the footer scripts.
*
* @return bool
*/
function wp_kama_print_footer_scripts_filter( $print ){
// filter...
return $print;
}
- $print(true|false)
- Whether to print the footer scripts.
Default: true
Changelog
| Since 2.8.0 | Introduced. |
Where the hook is called
print_footer_scripts
wp-includes/script-loader.php 2182
if ( apply_filters( 'print_footer_scripts', true ) ) {