Browse: Home / Classes / LD_REST_Posts_Controller_V2 /

LD_REST_Posts_Controller_V2::get_additional_fields

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 #

$object_type

(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 #

Changelog
Version Description
3.3.0.2 Introduced.