WordPress开发者和主题制作者的搜索引擎



rest_insert_user ›

Since4.7.0
已弃用n/a
do_action( 'rest_insert_user', $user, $request, true )
参数: (3)
  • (WP_User) $user Inserted or updated user object.
    Required: Yes
  • (WP_REST_Request) $request Request object.
    Required: Yes
  • (bool) $creating True when creating a user, false when updating.
    Required: Yes
定义在:
文档:

Fires immediately after a user is created or updated via the REST API.





源码

do_action( 'rest_insert_user', $user, $request, true );