apply_filters( ‘rest_pre_insert_user’, object $prepared_user, WP_REST_Request $request )

In this article

Filters user data before insertion via the REST API.

Parameters

$prepared_userobject
User object.
$requestWP_REST_Request
Request object.

Source

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

Changelog

VersionDescription
4.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.