WordPress at a glance
function is not described

WP_Styles::add_inline_style() public WP 3.3.0

Adds extra CSS styles to a registered stylesheet.

{} It's a method of the class: WP_Styles{}

No Hooks.

Return

true/false. True on success, false on failure.

Usage

global $wp_styles;
$wp_styles->add_inline_style( $handle, $code );
$handle(string) (required)
The style's registered handle.
$code(string) (required)
String containing the CSS styles to be added.

Changelog

Since 3.3.0 Introduced.

Code of WP_Styles::add_inline_style() WP 5.5.1

<?php
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 );
}