Multisite adjust uploads like (/upload/%alphanumeric_id%/%file_type%/%blog_ID%)
Ok this is my solution for now – but how do I add the generated alphanumeric_id as add_post_meta($post_id, ‘alphanumeric_id’, $randomString); to the related attachment? /*===================================================================================*/ /* function change the upload for multi-lang /*==================================================================================*/ function bZive_handle_upload_prefilter( $file ) { add_filter(‘upload_dir’, ‘bZive_custom_upload_dir’); return $file; } function bZive_handle_upload( $fileinfo ){ remove_filter(‘upload_dir’, ‘bZive_custom_upload_dir’); return $fileinfo; } /** * Force … Read more