Switch language

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




welcome_user_msg_filter [ WordPress Function ]

welcome_user_msg_filter ( $text )
Parameters:
  • (string) $text
Returns:
  • (string)
Defined at:



Ensure that the welcome message is not empty. Currently unused.

Source


<?php
function welcome_user_msg_filter$text ) {
    if ( !
$text ) {
        
remove_filter'site_option_welcome_user_email''welcome_user_msg_filter' );
        
$text __'Dear User,

Your new account is set up.

You can log in with the following information:
Username: USERNAME
Password: PASSWORD
LOGINLINK

Thanks!

--The Team @ SITE_NAME' 
);
        
update_site_option'welcome_user_email'$text );
    }
    return 
$text;
}
?>

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