wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
welcome_user_msg_filter › WordPress Function
Seit
Veraltetn/v
› welcome_user_msg_filter ( $text )
| Parameter: |
|
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: | |
| Changelog: |
|
Ensures that the welcome message is not empty. Currently unused.
Ähnliche Funktionen: wpmu_welcome_user_notification, delete_user_meta, wp_resolve_numeric_slug_conflicts, wp_list_filter, wp_insert_site
Quellcode
function welcome_user_msg_filter( $text ) {
if ( ! $text ) {
remove_filter( 'site_option_welcome_user_email', 'welcome_user_msg_filter' );
/* translators: Do not translate USERNAME, PASSWORD, LOGINLINK, SITE_NAME: those are placeholders. */
$text = __(
'Howdy USERNAME,
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;
}