function convert_url_to_absolute_path( $file_url ) {

        // Remove WordPress site url from file url.
        $file_base = str_replace( trailingslashit( site_url() ), '', $file_url );

        // Add WordPress installation path to file base.
        $absolute_path = ABSPATH . $file_base;

        return $absolute_path;

    }