PHP 클래스 WP_Customize_Custom_CSS_Setting, wordpress

또한 보기: WP_Customize_Setting
부터: 4.7.0
상속: extends WP_Customize_Setting
파일 보기 프로젝트 열기: johnpbloch/wordpress 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$capability string Capability required to edit this setting.
$stylesheet string Stylesheet
$transport string Setting Transport
$type string The setting type.

공개 메소드들

메소드 설명
__construct ( WP_Customize_Manager $manager, string $id, array $args = [] ) WP_Customize_Custom_CSS_Setting constructor.
filter_previewed_wp_get_custom_css ( string $css, string $stylesheet ) : string Filter wp_get_custom_css for applying the customized value.
preview ( ) : boolean Add filter to preview post value.
update ( string $css ) : integer | false Store the CSS setting value in the custom_css custom post type for the stylesheet.
validate ( string $css ) : true | WP_Error Validate CSS.
value ( ) : string Fetch the value of the setting. Will return the previewed value when preview() is called.

비공개 메소드들

메소드 설명
is_possible_content_error ( string $css ) : boolean Find "content:" within a string.
validate_balanced_characters ( string $opening_char, string $closing_char, string $css ) : boolean Ensure there are a balanced number of paired characters.
validate_count_unclosed_comments ( string $css ) : integer Count unclosed CSS Comments.
validate_equal_characters ( string $char, string $css ) : boolean Ensure there are an even number of paired characters.

메소드 상세

__construct() 공개 메소드

WP_Customize_Custom_CSS_Setting constructor.
부터: 4.7.0
public __construct ( WP_Customize_Manager $manager, string $id, array $args = [] )
$manager WP_Customize_Manager The Customize Manager class.
$id string An specific ID of the setting. Can be a theme mod or option name.
$args array Setting arguments.

filter_previewed_wp_get_custom_css() 공개 메소드

This is used in the preview when wp_get_custom_css() is called for rendering the styles.
또한 보기: wp_get_custom_css()
부터: 4.7.0
public filter_previewed_wp_get_custom_css ( string $css, string $stylesheet ) : string
$css string Original CSS.
$stylesheet string Current stylesheet.
리턴 string CSS.

preview() 공개 메소드

Add filter to preview post value.
부터: 4.7.9
public preview ( ) : boolean
리턴 boolean False when preview short-circuits due no change needing to be previewed.

update() 공개 메소드

Store the CSS setting value in the custom_css custom post type for the stylesheet.
부터: 4.7.0
public update ( string $css ) : integer | false
$css string The input value.
리턴 integer | false The post ID or false if the value could not be saved.

validate() 공개 메소드

Checks for imbalanced braces, brackets, and comments. Notifications are rendered when the customizer state is saved.
부터: 4.7.0
public validate ( string $css ) : true | WP_Error
$css string The input string.
리턴 true | WP_Error True if the input was validated, otherwise WP_Error.

value() 공개 메소드

Fetch the value of the setting. Will return the previewed value when preview() is called.
또한 보기: WP_Customize_Setting::value()
부터: 4.7.0
public value ( ) : string
리턴 string

프로퍼티 상세

$capability 공개적으로 프로퍼티

Capability required to edit this setting.
부터: 4.7.0
public string $capability
리턴 string

$stylesheet 공개적으로 프로퍼티

Stylesheet
부터: 4.7.0
public string $stylesheet
리턴 string

$transport 공개적으로 프로퍼티

Setting Transport
부터: 4.7.0
public string $transport
리턴 string

$type 공개적으로 프로퍼티

The setting type.
부터: 4.7.0
public string $type
리턴 string