GF_REST_Entry_Notifications_Controller
Source: includes/webapi/v2/includes/controllers/class-controller-entry-notifications.php:7
Details
- Kind:
class - Namespace:
(global) - Extends: GF_REST_Controller
Properties
| Property | Type | Description |
|---|---|---|
$rest_base | string |
Methods
| Method | Description |
|---|---|
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
| Name | Type | Default | Description |
|---|---|---|---|
$request | WP_REST_Request | Full data about the request. |
Returns
Since:
2.4-beta-12.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
| Name | Type | Default | Description |
|---|---|---|---|
$request | WP_REST_Request | Full data about the request. |
Returns
- WP_Error |
bool
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