WP_Customize_Custom_CSS_Setting::validate

SummerySummery

Validate CSS.

Syntax

WP_Customize_Custom_CSS_Setting::validate( string $css )

DescriptionDescription

Checks for imbalanced braces, brackets, and comments. Notifications are rendered when the customizer state is saved.

ParametersParameters

$css

(string) (Required) The input string.

ReturnReturn

(true|WP_Error) True if the input was validated, otherwise WP_Error.

SourceSource

File: wp-includes/customize/class-wp-customize-custom-css-setting.php


			

ChangelogChangelog

Changelog
Version Description
4.9.0 Checking for balanced characters has been moved client-side via linting in code editor.
4.7.0 Introduced.
Scroll to Top