当前位置: 首页>>代码示例>>PHP>>正文


PHP validate_user_form函数代码示例

本文整理汇总了PHP中validate_user_form函数的典型用法代码示例。如果您正苦于以下问题:PHP validate_user_form函数的具体用法?PHP validate_user_form怎么用?PHP validate_user_form使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了validate_user_form函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: validate_user_signup

/**
 * Validate the new user signup
 *
 * @since MU
 *
 * @return bool True if new user signup was validated, false if error
 */
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;
}
开发者ID:aaronholbrook,项目名称:ms-custom-signup,代码行数:26,代码来源:new-user.php

示例2: validate_user_signup

/**
 * Validate the new user signup
 *
 * @since MU
 *
 * @uses validate_user_form() to retrieve an array of the user data
 * @uses wpmu_signup_user() to signup the new user
 * @uses confirm_user_signup() to confirm the new user signup
 * @return bool True if new user signup was validated, false if error
 */
function validate_user_signup()
{
    $result = validate_user_form();
    extract($result);
    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;
    }
    //duplicate_hook
    wpmu_signup_user($user_name, $user_email, apply_filters('add_signup_meta', array()));
    confirm_user_signup($user_name, $user_email);
    return true;
}
开发者ID:openify,项目名称:wordpress-composer,代码行数:27,代码来源:wp-signup.php

示例3: validate_user_signup

function validate_user_signup()
{
    $result = validate_user_form();
    extract($result);
    // list_hooked_functions();
    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;
    }
    echo "<h1>" . $user_email . "</h1>";
    wpmu_signup_user($user_name, $user_email, apply_filters("add_signup_meta", array()));
    confirm_user_signup($user_name, $user_email);
    return true;
}
开发者ID:elizabethcb,项目名称:Daily-Globe,代码行数:18,代码来源:wp-signup.php


注:本文中的validate_user_form函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。