rest_pre_insert_user

rest_pre_insert_user

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('rest_pre_insert_user') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php line 1199
    		 *
    		 * @param object          $prepared_user User object.
    		 * @param WP_REST_Request $request       Request object.
    		 */
    		return apply_filters( 'rest_pre_insert_user', $prepared_user, $request );
    	}
    
    	/**
    	 * Determines if the current user is allowed to make the desired roles change.
    	 *
    	 * @since 4.7.0