<?php if(class_exists('S3Plugin')){ $output = S3Plugin::scanForImages($output); } ?>
To check if a single media needs to be uploaded to CDN and replaced if uploaded.
<?php if(is_singular()){ $attachmentDetails = &get_children( "numberposts=1&post_type=attachment&post_mime_type=image&post_parent=" . get_the_ID() ); if(!empty ($attachmentDetails)){ $attachmentDetails = array_shift($attachmentDetails); $postImage = array_shift(wp_get_attachment_image_src($attachmentDetails->ID,'thumbnail')); if(class_exists('S3Plugin')){ $cdnImageURL = S3Plugin::getCDNURL($postImage); if($cdnImageURL!==FALSE){ $postImage = $cdnImageURL; } } } } ?>
No. This plugin does not change any content in your blog. All modification are done using Wordpress plugin filters on the fly.
Not needed. You have to just upload the files
No. You cannot manage the files in Amazon S3 using this plugin.
The plugin will change the upload path prefix and clears all local upload que and cached media files. All the local media files are uploaded again. Please note the files already uploaded by this plugin in S3 has to be deleted manually. Please don't clear cache often, use only there is a plugin update / Wordpress update.
For fonts to work properly you need to make sure CORS is updated properly in your Amazon bucket.