PHP 클래스 Kirki_Sanitize_Values, kirki

파일 보기 프로젝트 열기: aristath/kirki 1 사용 예제들

공개 메소드들

메소드 설명
__callStatic ( string $name, mixed $arguments ) : mixed Fallback for non-existing methods.
checkbox ( boolean | string $value ) : boolean Checkbox sanitization callback.
color ( string $value ) : string Sanitize colors.
css_dimension ( string $value ) : string Sanitizes css dimensions.
dropdown_pages ( integer $page_id, WP_Customize_Setting $setting ) : integer | string Drop-down Pages sanitization callback.
filter_number ( string $value ) : integer | float Filters numeric values.
number ( integer | float | double | string $value ) : integer | float | double Sanitize number options.
rgba ( string $value ) : string Sanitize RGBA colors
sortable ( string | array $value ) : string Sanitize sortable controls
unfiltered ( integer | string | array $value ) : integer | string | array DOES NOT SANITIZE ANYTHING.

메소드 상세

__callStatic() 공개 정적인 메소드

Fallback for non-existing methods.
public static __callStatic ( string $name, mixed $arguments ) : mixed
$name string The method we're trying to access.
$arguments mixed The arguments the method we're trying to call accepts.
리턴 mixed The $arguments provided.

checkbox() 공개 정적인 메소드

Sanitization callback for 'checkbox' type controls. This callback sanitizes $value as a boolean value, either TRUE or FALSE. Deprecated. Use Kirki_Field_Checkbox::sanitize() instead.
또한 보기: Kirki_Field_Checkbox::sanitize()
public static checkbox ( boolean | string $value ) : boolean
$value boolean | string Whether the checkbox is checked.
리턴 boolean Whether the checkbox is checked.

color() 공개 정적인 메소드

Sanitize colors.
부터: 0.8.5
public static color ( string $value ) : string
$value string The value to be sanitized.
리턴 string

css_dimension() 공개 정적인 메소드

Sanitizes css dimensions.
부터: 2.2.0
public static css_dimension ( string $value ) : string
$value string The value to be sanitized.
리턴 string

dropdown_pages() 공개 정적인 메소드

- Sanitization: dropdown-pages - Control: dropdown-pages Sanitization callback for 'dropdown-pages' type controls. This callback sanitizes $page_id as an absolute integer, and then validates that $input is the ID of a published page.
또한 보기: absint() https://developer.wordpress.org/reference/functions/absint/
또한 보기: get_post_status() https://developer.wordpress.org/reference/functions/get_post_status/
public static dropdown_pages ( integer $page_id, WP_Customize_Setting $setting ) : integer | string
$page_id integer Page ID.
$setting WP_Customize_Setting Setting instance.
리턴 integer | string Page ID if the page is published; otherwise, the setting default.

filter_number() 공개 정적인 메소드

Filters numeric values.
public static filter_number ( string $value ) : integer | float
$value string The value to be sanitized.
리턴 integer | float

number() 공개 정적인 메소드

Sanitize number options.
부터: 0.5
public static number ( integer | float | double | string $value ) : integer | float | double
$value integer | float | double | string The value to be sanitized.
리턴 integer | float | double

rgba() 공개 정적인 메소드

Sanitize RGBA colors
부터: 0.8.5
public static rgba ( string $value ) : string
$value string The value to be sanitized.
리턴 string

sortable() 공개 정적인 메소드

Sanitize sortable controls
부터: 0.8.3
public static sortable ( string | array $value ) : string
$value string | array The value to be sanitized.
리턴 string

unfiltered() 공개 정적인 메소드

DOES NOT SANITIZE ANYTHING.
부터: 0.5
public static unfiltered ( integer | string | array $value ) : integer | string | array
$value integer | string | array The value to be sanitized.
리턴 integer | string | array