um_multisite_upload_sites_directory

Hook type

Filter

Description

Change multisite uploads directory

Parameters

$sites_dir

(string) Upload sites directory

Usage

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

Examples

<?php
add_filter( 'um_multisite_upload_sites_directory', 'my_multisite_upload_sites_directory', 10, 1 );
function my_multisite_upload_sites_directory( $sites_dir ) {
    // your code here
return $sites_dir;
}
?>

Change Log

Since: 2.0

Source

um_multisite_upload_sites_directory is located in includes/core/um-filters-files.php::line 40