Filter: um_user_pre_updating_files_array

apply_filters( 'um_user_pre_updating_files_array', $files, $user_id ) → {array}

Filters files submitted by the UM registration or profile form.

Parameters:
Name Type Description
$files array

Submitted files.

$user_id int

User ID.

Since:
  • 1.3.x
Source:
Returns:

Submitted files.

Type
array
Example

Extends submitted files.

function my_user_pre_updating_files( $files, $user_id ) {
    $files[] = 'some file';
    return $files;
}
add_filter( 'um_user_pre_updating_files_array', 'my_user_pre_updating_files', 10, 2 );