钩子文档

wpmu_active_signup

💡 云策文档标注

概述

wpmu_active_signup 是一个 WordPress 过滤器,用于控制多站点网络中的注册类型。它允许开发者修改或过滤注册类型参数,以自定义用户或博客的注册行为。

关键要点

  • 这是一个过滤器 Hook,名称为 'wpmu_active_signup',用于过滤站点注册类型。
  • 参数 $active_signup 是一个字符串,表示注册类型,可选值包括 'all'、'none'、'blog' 或 'user'。
  • 该过滤器从 WordPress 3.0.0 版本开始引入。

代码示例

$active_signup = apply_filters( 'wpmu_active_signup', $active_signup );

📄 原文内容

Filters the type of site sign-up.

Parameters

$active_signupstring
String that returns registration type. The value can be 'all', 'none', 'blog', or 'user'.

Source

$active_signup = apply_filters( 'wpmu_active_signup', $active_signup );

Changelog

Version Description
3.0.0 Introduced.