You appear to be a bot. Output may be restricted
Description
Helper used with theupload_dir
filter to remove the /year/month sub directories from the uploads path and URL.
Usage
_upload_dir_no_subdir( $uploads );
Parameters
- $uploads
- ( mixed ) required –
Returns
voidSource
File name: oik-batch/tests/functions.phpLines:
1 to 9 of 9
function _upload_dir_no_subdir( $uploads ) { $subdir = $uploads['subdir']; $uploads['subdir'] = ''; $uploads['path'] = str_replace( $subdir, '', $uploads['path'] ); $uploads['url'] = str_replace( $subdir, '', $uploads['url'] ); return $uploads; }View on GitHub