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



rest_pre_insert_user ›

Since4.7.0
已弃用n/a
apply_filters( 'rest_pre_insert_user', $prepared_user, $request )
参数: (2)
  • (object) $prepared_user User object.
    Required: Yes
  • (WP_REST_Request) $request Request object.
    Required: Yes
定义在:
文档:

Filters user data before insertion via the REST API.





源码

return apply_filters( 'rest_pre_insert_user', $prepared_user, $request );