Amazon_S3_And_CloudFront::get_media_action_strings PHP Method

get_media_action_strings() public method

Get all strings or a specific string used for the media actions
public get_media_action_strings ( null | string $string = null ) : array | string
$string null | string
return array | string
    public function get_media_action_strings($string = null)
    {
        $strings = apply_filters('as3cf_media_action_strings', array('amazon_s3' => __('Amazon S3', 'amazon-s3-and-cloudfront'), 'bucket' => _x('Bucket', 'Amazon S3 bucket', 'amazon-s3-and-cloudfront'), 'key' => _x('Path', 'Path to file on Amazon S3', 'amazon-s3-and-cloudfront'), 'region' => _x('Region', 'Location of Amazon S3 bucket', 'amazon-s3-and-cloudfront'), 'acl' => _x('Access', 'Access control list of the file on Amazon S3', 'amazon-s3-and-cloudfront'), 'url' => __('URL', 'amazon-s3-and-cloudfront')));
        if (!is_null($string)) {
            return isset($strings[$string]) ? $strings[$string] : '';
        }
        return $strings;
    }
Amazon_S3_And_CloudFront