Browse: Home / Classes / LD_REST_Posts_Controller_V2 /


LD_REST_Posts_Controller_V2::get_additional_fields( string $object_type = null )

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

Description #

Parameters #


(string) (Optional) The object type.

Default value: null

Return #

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

Source #

File: includes/rest-api/v2/class-ld-rest-posts-controller.php

Changelog #

Version Description Introduced.