function convert_absolute_path_to_url( $absolute_path ) {

        // Remove WordPress installation path from file path.
        $file_base = str_replace( ABSPATH, '', $absolute_path );

        // Add site url to file base.
        $file_url = trailingslashit( site_url() ) . $file_base;

        return $file_url;

    }