On this page
WP_Style_Engine_CSS_Rule::set_selector( string $selector ): WP_Style_Engine_CSS_Rule
Sets the selector.
Parameters
$selectorstring Required-
The CSS selector.
Return
WP_Style_Engine_CSS_Rule Returns the object to allow chaining of methods.
Source
File: wp-includes/style-engine/class-wp-style-engine-css-rule.php. View all references
public function set_selector( $selector ) {
$this->selector = $selector;
return $this;
}
Related
Used By
| Used By | Description |
|---|---|
| WP_Style_Engine_CSS_Rule::__construct() wp-includes/style-engine/class-wp-style-engine-css-rule.php | Constructor |
Changelog
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_style_engine_css_rule/set_selector