Skip to main content

GF_REST_Entry_Properties_Controller

Source: includes/webapi/v2/includes/controllers/class-controller-entry-properties.php:7

Details

Properties

PropertyTypeDescription
$rest_basestring

Methods

MethodDescription
register_routes()Register the routes for the objects of the controller.
update_items()Update one item from the collection
update_item_permissions_check()Check if a given request has access to update a specific item
get_collection_params()Get the query params for collections
get_item_schema()Get the Entry Property schema, conforming to JSON Schema.

Method Reference

register_routes()

public function register_routes()

Register the routes for the objects of the controller.

Since: 2.4-beta-1

Source: includes/webapi/v2/includes/controllers/class-controller-entry-properties.php:23

update_items()

public function update_items( $request )

Update one item from the collection

Parameters

NameTypeDefaultDescription
$requestWP_REST_RequestFull data about the request.

Returns

Since: 2.4-beta-1

Source: includes/webapi/v2/includes/controllers/class-controller-entry-properties.php:49

update_item_permissions_check()

public function update_item_permissions_check( $request )

Check if a given request has access to update a specific item

Parameters

NameTypeDefaultDescription
$requestWP_REST_RequestFull data about the request.

Returns

Since: 2.4

Source: includes/webapi/v2/includes/controllers/class-controller-entry-properties.php:88

get_collection_params()

public function get_collection_params()

Get the query params for collections

Returns

  • array

Since: 2.4

Source: includes/webapi/v2/includes/controllers/class-controller-entry-properties.php:126

get_item_schema()

public function get_item_schema()

Get the Entry Property schema, conforming to JSON Schema.

Returns

  • array

Since: 2.4-beta-1

Source: includes/webapi/v2/includes/controllers/class-controller-entry-properties.php:137