A8C_Files::upload_url_path PHP Метод

upload_url_path() публичный Метод

public upload_url_path ( $upload_url_path, $option )
    public function upload_url_path($upload_url_path, $option)
    {
        // No modifications needed outside multisite
        if (false === is_multisite()) {
            return $upload_url_path;
        }
        // Change the upload url path to site's URL + wp-content/uploads without trailing slash
        // Related core code: https://core.trac.wordpress.org/browser/tags/4.6.1/src/wp-includes/functions.php#L1929
        $upload_url_path = untrailingslashit(get_site_url(null, 'wp-content/uploads'));
        return $upload_url_path;
    }