/** * Magic get method. * * This function exists to allow direct access to properties that are stored on the internal WPDLib\FieldTypes\Base object of the field. * * @since 0.5.0 * @param string $property name of the property to find * @return mixed value of the property or null if it does not exist */ public function __get($property) { $value = parent::__get($property); if (null === $value) { $value = $this->_field->{$property}; } return $value; }