print_footer_scripts
Filters whether to print the footer scripts.
Использование
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.
По умолчанию: true
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
print_footer_scripts
wp-includes/script-loader.php 2155
if ( apply_filters( 'print_footer_scripts', true ) ) {