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

WP_REST_Controller::get_object_type() protected WP 4.7.0

Retrieves the object type this controller is responsible for managing.

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

Хуков нет.

Возвращает

String. Object type for the controller.

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

// protected - for code of main (parent) or child class
$result = $this->get_object_type();

Changelog

Since 4.7.0 Introduced.

Код WP_REST_Controller::get_object_type() WP 5.5.1

<?php
protected function get_object_type() {
	$schema = $this->get_item_schema();

	if ( ! $schema || ! isset( $schema['title'] ) ) {
		return null;
	}

	return $schema['title'];
}