wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
confirm_another_blog_signup › WordPress Function
Seit
Veraltetn/v
› confirm_another_blog_signup ( $domain, $path, $blog_title, $user_name, $user_email = '', $meta = array(), $blog_id = 0 )
Parameter: (7) |
|
Definiert in: |
|
Codex: | |
Changelog: |
|
Shows a message confirming that the new site has been created.
Ähnliche Funktionen: confirm_blog_signup, validate_another_blog_signup, confirm_user_signup, wpmu_validate_blog_signup, validate_blog_signup
Quellcode
function confirm_another_blog_signup( $domain, $path, $blog_title, $user_name, $user_email = '', $meta = array(), $blog_id = 0 ) { if ( $blog_id ) { switch_to_blog( $blog_id ); $home_url = home_url( '/' ); $login_url = wp_login_url(); restore_current_blog(); } else { $home_url = 'http://' . $domain . $path; $login_url = 'http://' . $domain . $path . 'wp-login.php'; } $site = sprintf( '<a href="%1$s">%2$s</a>', esc_url( $home_url ), $blog_title ); ?> <h2> <?php /* translators: %s: Site title. */ printf( __( 'The site %s is yours.' ), $site ); ?> </h2> <p> <?php printf( /* translators: 1: Link to new site, 2: Login URL, 3: Username. */ __( '%1$s is your new site. <a href="%2$s">Log in</a> as “%3$s” using your existing password.' ), sprintf( '<a href="%s">%s</a>', esc_url( $home_url ), untrailingslashit( $domain . $path ) ), esc_url( $login_url ), $user_name ); ?> </p> <?php /** * Fires when the site or user sign-up process is complete. * * @since 3.0.0 */ do_action( 'signup_finished' ); }