WordPress at a glance
функция не описана

WP_Term::__get() public WP 4.4.0

Getter.

It's a method of the class: WP_Term{}

Хуков нет.

Возвращает

Mixed. Property value.

Использование

$WP_Term = new WP_Term();
$WP_Term->__get( $key );
$key(string) (required)
Property to get.

Changelog

Since 4.4.0 Introduced.

Код WP_Term::__get() WP 5.5.1

<?php
public function __get( $key ) {
	switch ( $key ) {
		case 'data':
			$data    = new stdClass();
			$columns = array( 'term_id', 'name', 'slug', 'term_group', 'term_taxonomy_id', 'taxonomy', 'description', 'parent', 'count' );
			foreach ( $columns as $column ) {
				$data->{$column} = isset( $this->{$column} ) ? $this->{$column} : null;
			}

			return sanitize_term( $data, $data->taxonomy, 'raw' );
	}
}