print_footer_scripts()
最后更新于:2021-11-27 20:38:48
print_footer_scripts()Prints the scripts that were queued for the footer or too late for the HTML head.
响应
(array)
源文件
文件: gc-includes/script-loader.php
function print_footer_scripts() {
global $gc_scripts, $concatenate_scripts;
if ( ! ( $gc_scripts instanceof GC_Scripts ) ) {
return array(); // No need to run if not instantiated.
}
script_concat_settings();
$gc_scripts->do_concat = $concatenate_scripts;
$gc_scripts->do_footer_items();
/**
* Filters whether to print the footer scripts.
*
* @since 2.8.0
*
* @param bool $print Whether to print the footer scripts. Default true.
*/
if ( apply_filters( 'print_footer_scripts', true ) ) {
_print_scripts();
}
$gc_scripts->reset();
return $gc_scripts->done;
}