Adds extra CSS styles to a registered stylesheet.
Parameters
$handle
stringrequired- The style’s registered handle.
$code
stringrequired- String containing the CSS styles to be added.
Source
public function add_inline_style( $handle, $code ) {
if ( ! $code ) {
return false;
}
$after = $this->get_data( $handle, 'after' );
if ( ! $after ) {
$after = array();
}
$after[] = $code;
return $this->add_data( $handle, 'after', $after );
}
Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.