Field::sanitize_cb()
Description #
Parse sanitization callbacks.
Source #
File: lib/form/class-field.php
protected function sanitize_cb() { if ( ! empty( $this->args['sanitize'] ) ) { if ( is_array( $this->args['sanitize'] ) ) { $this->sanitize_cb = array_unique( $this->args['sanitize'] ); } else { $this->sanitize_cb = array_unique( explode( ',', $this->args['sanitize'] ) ); } } }
Expand full source code Collapse full source code View on GitHub: lib/form/class-field.php:194
Add your comment