钩子文档

in_admin_footer

💡 云策文档标注

概述

in_admin_footer 是一个 WordPress 动作钩子,在管理后台页脚打开标签后触发,主要用于在管理页面加载时执行 JavaScript 或自定义 PHP 函数。

关键要点

  • 触发时机:在 wp-admin/admin-footer.php 页面的 <body> 标签后立即触发
  • 主要用途:适合钩入在 document.ready 时运行的 JavaScript,或用于自定义管理页脚的 PHP 函数
  • 源调用:do_action( 'in_admin_footer' )
  • 版本历史:自 WordPress 2.5.0 引入

📄 原文内容

Fires after the opening tag for the admin footer.

More Information

The in_admin_footer action is triggered just after the <div id="footer"> tag of the wp-admin/admin-footer.php page. This position makes it a prime location for hooking javascript that fires on document.ready for the admin page. Also good for php functions targeted at customization of the admin footer.

Source

do_action( 'in_admin_footer' );

Changelog

VersionDescription
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.