WPDev.one
Core Function
View Source on Trac ↗

_wp_normalize_relative_css_links()

_wp_normalize_relative_css_links( mixed $css, mixed $stylesheet_url )

Makes URLs relative to the WordPress installation.

Parameters 2 required

Name / Type Description
$css
string

The CSS to make URLs relative to the WordPress installation.

Required
$stylesheet_url
string

The URL to the stylesheet.

Required

Return Value

(string)
The CSS with URLs made relative to the WordPress installation.

Function Information

Since Version
5.9.0
Source File
wp-includes/script-loader.php
Advertisement