Amazon_S3_And_CloudFront::wp_get_attachment_url PHP Method

wp_get_attachment_url() public method

Get attachment url
public wp_get_attachment_url ( string $url, integer $post_id ) : boolean | mixed | void | WP_Error
$url string
$post_id integer
return boolean | mixed | void | WP_Error
    public function wp_get_attachment_url($url, $post_id)
    {
        $new_url = $this->get_attachment_url($post_id);
        if (false === $new_url) {
            return $url;
        }
        $new_url = apply_filters('wps3_get_attachment_url', $new_url, $post_id, $this);
        // Old naming convention, will be deprecated soon
        $new_url = apply_filters('as3cf_wp_get_attachment_url', $new_url, $post_id);
        return $new_url;
    }
Amazon_S3_And_CloudFront