Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




validate_another_blog_signup [ WordPress Function ]

validate_another_blog_signup ( No parameters )
Defined at:



No description yet.

Source


<?php
function validate_another_blog_signup() {
    global 
$wpdb$blogname$blog_title$errors$domain$path;
    
$current_user wp_get_current_user();
    if ( !
is_user_logged_in() )
        die();

    
$result validate_blog_form();
    
extract($result);

    if ( 
$errors->get_error_code() ) {
        
signup_another_blog($blogname$blog_title$errors);
        return 
false;
    }

    
$public = (int) $_POST['blog_public'];
    
$meta apply_filters'signup_create_blog_meta', array( 'lang_id' => 1'public' => $public ) ); // deprecated
    
$meta apply_filters'add_signup_meta'$meta );

    
wpmu_create_blog$domain$path$blog_title$current_user->ID$meta$wpdb->siteid );
    
confirm_another_blog_signup($domain$path$blog_title$current_user->user_login$current_user->user_email$meta);
    return 
true;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics