WP_Styles::add_inline_style

SummerySummery

Adds extra CSS styles to a registered stylesheet.

Syntax

WP_Styles::add_inline_style( string $handle, string $code )

ParametersParameters

$handle

(string) (Required) The style's registered handle.

$code

(string) (Required) String containing the CSS styles to be added.

ReturnReturn

(bool) True on success, false on failure.

SourceSource

File: wp-includes/class.wp-styles.php


			

ChangelogChangelog

Changelog
Version Description
3.3.0 Introduced.
Scroll to Top