钩子文档

wp_print_footer_scripts

💡 云策文档标注

概述

wp_print_footer_scripts 是一个 WordPress 动作钩子,用于在页脚打印脚本和样式时触发。它位于 wp_footer 动作内部,无参数且函数不应返回值。

关键要点

  • 这是一个动作钩子,在页脚脚本和样式打印时触发。
  • 钩子位于 wp_footer 动作内部,用于处理页脚资源输出。
  • 函数不应返回任何值,也不应接受任何参数。
  • 从 WordPress 2.8.0 版本引入。

📄 原文内容

Fires when footer scripts are printed.

More Information

This hook print the scripts and styles in the footer.

The wp_print_footer_scripts action is triggered inside the wp_footer action.

This hook provides no parameters. Your functions shouldn’t return, and shouldn’t take any parameters.

Source

do_action( 'wp_print_footer_scripts' );

Changelog

Version Description
2.8.0 Introduced.