WC_REST_Controller::validate_setting_textarea_field()
Validate textarea based settings.
Method of the class: WC_REST_Controller{}
No Hooks.
Return
String
.
Usage
$WC_REST_Controller = new WC_REST_Controller(); $WC_REST_Controller->validate_setting_textarea_field( $value, $setting );
- $value(string) (required)
- Value.
- $setting(array) (required)
- Setting.
Changelog
Since 3.0.0 | Introduced. |
Since 9.0.0 | No longer allows storing IFRAME, which was allowed for "ShareThis" integration no longer found in core. |
WC_REST_Controller::validate_setting_textarea_field() WC REST Controller::validate setting textarea field code WC 9.7.1
public function validate_setting_textarea_field( $value, $setting ) { $value = is_null( $value ) ? '' : $value; return wp_kses_post( trim( stripslashes( $value ) ) ); }