validate_user_signup() - WordPress 函数参考中文文档

返回介绍

validate_user_signup()

发布于 2017-09-11 字数1640 浏览 778 评论 0

validate_user_signup()

Validate the new user signup


描述


返回值

(bool) True if new user signup was validated, false if error


源代码

File: wp-signup.php

function validate_user_signup() {
	$result = validate_user_form();
	$user_name = $result['user_name'];
	$user_email = $result['user_email'];
	$errors = $result['errors'];

	if ( $errors->get_error_code() ) {
		signup_user($user_name, $user_email, $errors);
		return false;
	}

	if ( 'blog' == $_POST['signup_for'] ) {
		signup_blog($user_name, $user_email);
		return false;
	}

	/** This filter is documented in wp-signup.php */
	wpmu_signup_user( $user_name, $user_email, apply_filters( 'add_signup_meta', array() ) );

	confirm_user_signup($user_name, $user_email);
	return true;
}

更新日志

Version 描述
MU Introduced.

相关函数

Uses

  • wp-signup.php:
    validate_user_form()
  • wp-signup.php:
    signup_user()
  • wp-signup.php:
    signup_blog()
  • wp-signup.php:
    confirm_user_signup()
  • wp-signup.php:
    add_signup_meta
  • wp-includes/plugin.php:
    apply_filters()
  • wp-includes/ms-functions.php:
    wpmu_signup_user()
  • Show 2 more uses
    Hide more uses


User Contributed Notes

上一篇:validate_user_form()

下一篇:valid_unicode()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!