um_multisite_upload_directory

Hook type

Filter

Description

Change multisite UM uploads directory

Parameters

$um_dir

(string) Upload UM directory

Usage

<?php add_filter( 'um_multisite_upload_directory', 'function_name', 10, 1 ); ?>

Examples

<?php
add_filter( 'um_multisite_upload_directory', 'my_multisite_upload_directory', 10, 1 );
function my_multisite_upload_directory( $um_dir ) {
    // your code here
return $um_dir;
}
?>

Change Log

Since: 2.0

Source

um_multisite_upload_directory is located in includes/core/um-filters-files.php::line 63