um_before_upload_db_meta_{$key}

Hook type

Action

Description

Update user's meta before upload

Parameters

$user_id

(int) User ID

Usage

add_action( 'um_before_upload_db_meta_{$key}', 'function_name', 10, 1 );

Examples

<?php
add_action( 'um_before_upload_db_meta_{$key}', 'my_before_upload_db_meta', 10, 1 );
function my_before_upload_db_meta( $user_id ) {
    // your code here
}
?>

Change Log

Since: 2.0

Source

um_before_upload_db_meta_{$key} is located in includes/core/class-files.php::line 1058