Form_Category::get_property_values( bool $pending_only = false )

Returns all current values as $property => $value pairs.

Description

See also

Parameters

$pending_only

(bool) (Optional) Whether to only return pending properties.

Default value: false

Return

(array) Array of $property => $value pairs.

Source

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

	protected function get_property_values( $pending_only = false ) {
		$properties = array( 'id', 'title', 'slug', 'description', 'parent', 'count' );
		if ( $pending_only ) {
			$properties = $this->pending_properties;
		}

		$values = array();
		foreach ( $properties as $property ) {
			$values[ $property ] = $this->__get( $property );
		}

		return $values;
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.