钩子文档

signup_header

💡 云策文档标注

概述

signup_header 是一个 WordPress 动作钩子,在站点注册屏幕的头部区域触发。它允许开发者在注册页面的头部添加自定义代码或功能。

关键要点

  • signup_header 是一个动作钩子,在 wp-signup.php 文件中定义,通过 do_action('signup_header') 调用。
  • 它用于在注册页面的头部执行自定义操作,例如添加样式、脚本或其他 HTML 元素。
  • 相关函数 do_signup_header() 在 wp-signup.php 中通过 wp_head 打印 signup_header 钩子。
  • 该钩子自 WordPress 3.0.0 版本引入,无后续变更记录。

📄 原文内容

Fires within the head section of the site sign-up screen.

Source

do_action( 'signup_header' );

Changelog

Version Description
3.0.0 Introduced.