Transforms a slug into a CSS Custom Property.
Parameters
$inputstringrequired- String to replace.
$slugstringrequired- The slug value to use to generate the custom property.
Source
protected static function replace_slug_in_string( $input, $slug ) {
return strtr( $input, array( '$slug' => $slug ) );
}
Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.