• rtawss3_delete_bucket_table_entries

By default, rtAmazon s3 do not delete bucket table entries if it do not find the bucket on s3. If you want to delete the table entries then pass false to this filter.

add_filter( 'rtawss3_delete_bucket_table_entries', 'rtawss3_filter_to_delete_bucket_table_entries',10,1);
function rtawss3_filter_to_delete_bucket_table_entries( $flag ){
    $flag = false;
    return $flag;
  • replace_aws_img_urls_from_activities

If media URLs are getting broken on your activity page then please apply the following filter.

 * Prevent changing urls of activity image
 * @return bool return true if buddypress multisite is enabled.
function rtmedia_buddypress_mu_enabled() {
    if ( defined( 'BP_ENABLE_MULTIBLOG' ) && true === BP_ENABLE_MULTIBLOG ) {
        return true;
add_filter( 'replace_aws_img_urls_from_activities', 'rtmedia_buddypress_mu_enabled' );
  • rtawss3_before_virtual_folder_path

You can use this filter and update the folder path according to your requirement.

function custom_rtawss3_before_virtual_folder_path( $prefix, $path_info ){
    $prefix = 'my/new/path/';
    return $prefix;
add_filter( 'rtawss3_before_virtual_folder_path', 'custom_rtawss3_before_virtual_folder_path', 10, 2 );
  • rtawss3_get_attachment_url

By default, the URLs returned by the AWS API are HTTPS URLs. If you want to use HTTP version of the URLs, you can use this filter. Using this filter you will get the HTTP version of the URL if your site us using/running on HTTP or you will get HTTPS version of the URL if you have SSL configured site.

function custom_rtawss3_get_attachment_url(){
    return true;
add_filter( 'rtawss3_get_attachment_url', 'custom_rtawss3_get_attachment_url', 10 );