函数文档

do_signup_header()

💡 云策文档标注

概述

do_signup_header() 是一个 WordPress 函数,用于通过 wp_head 打印 signup_header。它触发 signup_header 动作钩子,在站点注册屏幕的头部部分执行相关回调函数。

关键要点

  • 函数 do_signup_header() 调用 do_action('signup_header') 来触发 signup_header 钩子。
  • signup_header 钩子在站点注册屏幕的头部部分执行,允许开发者添加自定义代码。
  • 该函数自 WordPress MU 3.0.0 版本引入,位于 wp-includes/plugin.php 中。

📄 原文内容

Prints signup_header via wp_head.

Source

function do_signup_header() {
	/**
	 * Fires within the head section of the site sign-up screen.
	 *
	 * @since 3.0.0
	 */
	do_action( 'signup_header' );
}

Hooks

do_action( ‘signup_header’ )

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

Changelog

Version Description
MU (3.0.0) Introduced.