after_signup_site

动作钩子
do_action( 'after_signup_site', $domain, $path, $title, $user, $user_email, $key, $meta )
参数
  • (string) $domain The requested domain.
    Required:
  • (string) $path The requested path.
    Required:
  • (string) $title The requested site title.
    Required:
  • (string) $user The user's requested login name.
    Required:
  • (string) $user_email The user's email address.
    Required:
  • (string) $key The user's activation key.
    Required:
  • (array) $meta Signup meta data. By default, contains the requested privacy setting and lang_id.
    Required:
定义位置
相关勾子
after_signup_userafter_signup_formafter_setup_themesignup_site_metaadd_signup_meta
相关方法
signup_userwpmu_signup_userusers_can_register_signup_filtervalidate_user_signupwpmu_signup_stylesheetconfirm_user_signup
引入
4.4.0
弃用
-

after_signup_site: 这是一个在多站点网络中注册了一个新站点后被触发的钩子。开发人员可以使用这个钩子来执行额外的动作,或在新网站创建后添加自定义功能。

在网站注册信息被写入数据库后触发。

do_action( 'after_signup_site', $domain, $path, $title, $user, $user_email, $key, $meta );

常见问题

FAQs
查看更多 >