Form_Category::__get( string $property )

Magic getter.

Description

Returns a property value.

See also

Parameters

$property

(string) (Required) Property to get.

Return

(mixed) Property value, or null if property is not set.

Source

File: src/db-objects/form-categories/form-category.php

	public function __get( $property ) {
		switch ( $property ) {
			case 'id':
				return $this->original->term_id;
			case 'title':
				return $this->original->name;
		}

		return parent::__get( $property );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.