um_upload_basedir_filter

Hook type

Filter

Description

Change Uploads Basedir

Parameters

$basedir

(string) Uploads basedir

Usage

add_filter( 'um_upload_basedir_filter', 'function_name', 10, 1 );

Examples

<?php
add_filter( 'um_upload_basedir_filter', 'my_upload_basedir', 10, 1 );
function my_upload_basedir( $basedir ) {
    // your code here
return $basedir;
}
?>

Change Log

Since: 2.0

Source

um_upload_basedir_filter is located in includes/core/class-files.php::line 259