wp_installed_email

过滤钩子
apply_filters( 'wp_installed_email', $installed_email, $user, $blog_title, $blog_url, $password )
参数
  • (array) $installed_email { Used to build wp_mail(). @type string $to The email address of the recipient. @type string $subject The subject of the email. @type string $message The content of the email. @type string $headers Headers. }
    Required:
  • (WP_User) $user The site administrator user object.
    Required:
  • (string) $blog_title The site title.
    Required:
  • (string) $blog_url The site URL.
    Required:
  • (string) $password The site administrator's password. Note that a placeholder message is usually passed instead of the user's actual password.
    Required:
定义位置
相关勾子
wp_installwp_kses_allowed_htmlinvited_user_emailwp_is_mobileinstall_themes_tabs
相关方法
wp_install_defaultswp_installingwp_installwp_not_installedwp_ajax_install_themewp_get_installed_translations
引入
5.6.0
弃用
-

wp_installed_email:这是 WordPress 内置的一个函数,用于发送已安装通知电子邮件。在安装完成后,该函数发送一封确认邮件,告诉用户安装已成功完成。

过滤WordPress安装时发给网站管理员的电子邮件的内容。

$installed_email = apply_filters( 'wp_installed_email', $installed_email, $user, $blog_title, $blog_url, $password );

常见问题

FAQs
查看更多 >