wpseek.com
WordPress开发者和主题制作者的搜索引擎
welcome_user_msg_filter › WordPress Function
Sincen/a
已弃用n/a
› welcome_user_msg_filter ( $text )
| 参数: |
|
| 返回: |
|
| 定义在: |
|
| 文档: | |
| Change Log: |
|
Ensures that the welcome message is not empty. Currently unused.
Related Functions: wpmu_welcome_user_notification, delete_user_meta, core_update_footer, current_filter, current_user_can_for_site
源码
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;
}