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();


Since 4.7.0 Introduced.

Код WP_REST_Controller::get_object_type() WP 5.5.1

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

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

	return $schema['title'];