Field::value( mixed $custom_val = null )
Description #
Get value of a field.
Parameters #
- $custom_valmixed (Optional) Set custom value for field. Default value: null
Source #
File: lib/form/class-field.php
public function value( $custom_val = null ) { if ( null !== $custom_val ) { $this->value = $custom_val; return true; } if ( ! is_null( $this->value ) ) { return $this->value; } $sanitized = $this->sanitize(); if ( null !== $sanitized ) { return $sanitized; } return $this->get( 'value' ); }
Expand full source code Collapse full source code View on GitHub: lib/form/class-field.php:332
Add your comment