um_before_user_upload

Hook type

Action

Description

Before file uploaded on complete UM user registration.

Parameters

$user_id

(int) User ID

$files

(array) Files data

Usage

add_action( 'um_before_user_upload', 'function_name', 10, 2 );

Examples

<?php
add_action( 'um_before_user_upload', 'my_before_user_upload', 10, 2 );
function my_before_user_upload( $user_id, $files ) {
    // your code here
}
?>

Change Log

Since: 2.0

Source

um_before_user_upload is located in includes/core/um-actions-register.php::line 627