| 开发者 |
mohammadr3z |
|---|---|
| 更新时间 | 2025年12月2日 15:15 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.8 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
/wp-content/plugins/storage-for-edd-via-s3-compatible directory, or install the plugin through the WordPress plugins screen directly.composer install in the plugin directory if installing from source (not needed for release versions).This plugin works with any S3-compatible storage service including:
The plugin generates presigned URLs with configurable expiration times (default 3 minutes). These URLs are temporary and cannot be shared or reused after expiration, ensuring your digital products remain secure. For enhanced security, the plugin enforces timeout limits:
The plugin supports safe file types including:
The plugin implements multiple layers of security validation:
Yes, the plugin includes an S3 Library feature that allows you to browse and select existing files from your S3 bucket directly within the WordPress admin interface.
Yes, developers can customize the URL prefix using the s3cs_edd_url_prefix filter. Add this code to your theme's functions.php:
function customize_s3_url_prefix($prefix) { return 'edd-customprefix://'; // Change to your preferred prefix } add_filter('s3cs_edd_url_prefix', 'customize_s3_url_prefix');
Yes, developers can customize the allowed MIME types using the s3cs_edd_allowed_mime_types filter. Add this code to your theme's functions.php:
`
function customize_allowed_mime_types($mime_types) {
// Add custom MIME types
$mime_types[] = 'application/x-rar'; // Add RAR support
$mime_types[] = 'video/x-matroska'; // Add MKV video support
// Or remove specific MIME types
$mime_types = array_diff($mime_types, array('video/x-flv')); // Remove FLV
return $mime_types;
}
add_filter('s3cs_edd_allowed_mime_types', 'customize_allowed_mime_types');
`
s3cs_edd_url_prefix filter) for improved developer flexibility.makeRequestWithoutAuth method to enhance security posturehttps:// to Endpoint URL to prevent XML parsing errors.WP_Scripts::localize error by using wp_add_inline_script() for non-array values..js files for better maintainability and performance..css files.