um_upload_file_name

Hook type

Filter

Description

Change File Upload nonce

Parameters

$filename

(string) Filename

$id

(int) ID

$name

(string) Name

Usage

<?php add_filter( 'um_upload_file_name', 'function_name', 10, 3 ); ?>

Examples

<?php
add_filter( 'um_upload_file_name', 'my_upload_file_name', 10, 3 );
function my_upload_file_name( $filename, $id, $name ) {
    // your code here
return $filename;
}
?>

Change Log

Since: 2.0

Source

um_upload_file_name is located in includes/lib/upload/um-file-upload.php::line 104