Summery Summery
Adds extra CSS styles to a registered stylesheet.
Syntax Syntax
Parameters Parameters
- $handle
-
(Required) The style's registered handle.
- $code
-
(Required) String containing the CSS styles to be added.
Return Return
(bool) True on success, false on failure.
Source Source
File: wp-includes/class.wp-styles.php
* @param string $code String containing the CSS styles to be added.
* @return bool True on success, false on failure.
*/
public function add_inline_style( $handle, $code ) {
if ( ! $code ) {
return false;
}
$after = $this->get_data( $handle, 'after' );
if ( ! $after ) {
$after = array();
}
$after[] = $code;
Advertisement
Changelog Changelog
| Version | Description |
|---|---|
| 3.3.0 | Introduced. |