wpmu_validate_user_signup()用户注册批准(多站点)

目录

描述

Processes new user registrations.

Checks the data provided by the user during signup. Verifies the validity and uniqueness of user names and user email addresses, and checks email addresses against admin-provided domain whitelists and blacklists.

wpmu_validate_user_signup() 描述

用法

<?php wpmu_validate_user_signup($user_name$user_email); ?>

wpmu_validate_user_signup() 用法

参数

$user_name

(string) (必填) The login name provided by the user.

默认值: None

$user_email

(string) (必填) The email address provided by the user.

默认值: None

wpmu_validate_user_signup() 参数

示例

wpmu_validate_user_signup() 示例

注意

The hook 'wpmu_validate_user_signup' provides an easy way to modify the signup process. The value $result, which is passed to the hook, contains both the user-provided info and the error messages created by the function. 'wpmu_validate_user_signup' allows you to process the data in any way you'd like, and unset the relevant errors if necessary.

wpmu_validate_user_signup() 注意

历史

添加于 版本: MU

wpmu_validate_user_signup() 历史

源文件

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

wpmu_validate_user_signup() 源文件

相关