wpmu_validate_blog_signup()博客注册批准(多站点)

目录

描述

Processes new site registrations.

Checks the data provided by the user during blog signup. Verifies the validity and uniqueness of blog paths and domains.

wpmu_validate_blog_signup() 描述

用法

<?php wpmu_validate_blog_signup($blogname$blog_title$user); ?>

wpmu_validate_blog_signup() 用法

参数

$blogname

(string) (必填) The blog name provided by the user. Must be unique.

默认值: None

$blog_title

(string) (必填) The blog title provided by the user.

默认值: None

$cap

(string) (可选) Provide the other user's login name to override the restriction to block blog names equivalent to another user's login name.

默认值: empty string

wpmu_validate_blog_signup() 参数

示例

wpmu_validate_blog_signup() 示例

注意

  • This function prevents the current user from registering a new site with a blogname equivalent to another user's login name. Passing the $user parameter to the function, where $user is the other user, is effectively an override of this limitation.
  • Filter 'wpmu_validate_blog_signup' if you want to modify the way that WordPress validates new site signups.

wpmu_validate_blog_signup() 注意

历史

添加于 版本: MU

wpmu_validate_blog_signup() 历史

源文件

wpmu_validate_blog_signup() 函数的代码位于 wp-includes/ms-functions.php

wpmu_validate_blog_signup() 源文件

相关