钩子文档

customize_controls_print_footer_scripts

💡 云策文档标注

概述

customize_controls_print_footer_scripts 是一个 WordPress 动作钩子,用于在自定义控件页脚打印模板、控件脚本和设置。它从 WordPress 3.4.0 版本开始引入。

关键要点

  • 这是一个动作钩子,触发时机在自定义控件页脚,用于输出相关脚本和模板。
  • 主要用于开发者扩展自定义控件功能,添加自定义 JavaScript 或模板。
  • 源调用为 do_action( 'customize_controls_print_footer_scripts' ),开发者应使用 add_action 来挂接函数。

📄 原文内容

Prints templates, control scripts, and settings in the footer.

Source

do_action( 'customize_controls_print_footer_scripts' );

Changelog

Version Description
3.4.0 Introduced.