Skip to main content

GF_REST_Entry_Notifications_Controller

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

Details

Properties

PropertyTypeDescription
$rest_basestring

Methods

MethodDescription
register_routes()Register the routes for the objects of the controller.
create_item()Re-sends notifications for an entry.
create_item_permissions_check()Check if a given request has permission to send notifications.
get_collection_params()Get the query params for collections

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-notifications.php:22

create_item()

public function create_item( $request )

Re-sends notifications for an entry.

Parameters

NameTypeDefaultDescription
$requestWP_REST_RequestFull data about the request.

Returns

Since:

  • 2.4-beta-1
  • 2.10.0 (Updated to use GFAPI::send_notification().)

Source: includes/webapi/v2/includes/controllers/class-controller-entry-notifications.php:48

create_item_permissions_check()

public function create_item_permissions_check( $request )

Check if a given request has permission to send notifications.

Parameters

NameTypeDefaultDescription
$requestWP_REST_RequestFull data about the request.

Returns

Since: 2.4-beta-1

Source: includes/webapi/v2/includes/controllers/class-controller-entry-notifications.php:99

get_collection_params()

public function get_collection_params()

Get the query params for collections

Returns

  • array

Since: 2.4-beta-1

Source: includes/webapi/v2/includes/controllers/class-controller-entry-notifications.php:119