WP_REST_Controller::get_additional_fields

SummerySummery

Retrieves all of the registered additional fields for a given object-type.

Syntax

WP_REST_Controller::get_additional_fields( string $object_type = null )

ParametersParameters

$object_type

(string) (Optional) The object type.

Default value: null

ReturnReturn

(array) Registered additional fields (if any), empty array if none or if the object type could not be inferred.

SourceSource

File: wp-includes/rest-api/endpoints/class-wp-rest-controller.php


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top