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