Browse: Home / Classes / LD_REST_Posts_Controller_V2 /

LD_REST_Posts_Controller_V2::register_rest_fields

LD_REST_Posts_Controller_V2::register_rest_fields( array $fields = array(),  object $metabox = null )

Register Settings fields to REST.


Description #


Parameters #

$fields

(array) (Optional) Array of fields for section.

Default value: array()

$metabox

(object) (Optional) Metabox object.

Default value: null


Source #

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


Changelog #

Changelog
Version Description
3.3.0 Introduced.