WC_Settings_API::validate_password_field()
Validate Password Field. No input sanitization is used to avoid corrupting passwords.
Method of the class: WC_Settings_API{}
No Hooks.
Return
String
.
Usage
$WC_Settings_API = new WC_Settings_API(); $WC_Settings_API->validate_password_field( $key, $value );
- $key(string) (required)
- Field key.
- $value(string) (required)
- Posted Value.
WC_Settings_API::validate_password_field() WC Settings API::validate password field code WC 9.8.2
public function validate_password_field( $key, $value ) { $value = is_null( $value ) ? '' : $value; return trim( stripslashes( $value ) ); }