Filter: RML/User/Settings/Save

apply_filters( 'RML/User/Settings/Save', $response, $userId, $request ) → {array}

This filter is called to save the general user settings. You can use the $_POST fields to validate the input. If an error occurs you can pass an "error" array (string) to the response. Do not use this filter directly instead use the add_rml_user_settings_box() function!

Parameters:
Name Type Description
$response array

The response passed to the frontend

$userId int

The current user id

$request WP_REST_Request

The server request

Returns:
Type
array