GC_Customize_Setting::sanitize()

最后更新于:2021-11-27 08:44:35

GC_Customize_Setting::sanitize( string|array$value)

Sanitize an input.

参数

$value

(string|array) (Required) The value to sanitize.

响应

(string|array|null|GC_Error) Sanitized value, or null/GC_Error if invalid.

源文件

文件: gc-includes/class-gc-customize-setting.php

	public function sanitize( $value ) {

		/**
		 * Filters a Customize setting value in un-slashed form.
		 *
		 * @since 3.4.0
		 *
		 * @param mixed                $value Value of the setting.
		 * @param GC_Customize_Setting $this  GC_Customize_Setting instance.
		 */
		return apply_filters( "customize_sanitize_{$this->id}", $value, $this );
	}