-
Notifications
You must be signed in to change notification settings - Fork 0
Data
github-actions[bot] edited this page Aug 26, 2024
·
12 revisions
Data Class
- Full name:
\CourierNotices\Model\Courier_Notice\Data
Data constructor
public __construct(): mixed
Query global notices. Cache appropriately
public get_global_notices(array $args = array()): array|bool|mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$args |
array | array of arguments. |
Get our dismissible global notices
public get_dismissible_global_notices(array $args = array(), array $ajax_post_data = array(), bool $ids_only = false): array|bool|mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$args |
array | Query Args. |
$ajax_post_data |
array | Ajax data passed to manipulate the query. |
$ids_only |
bool | Whether to return only IDs. |
Query not dismissible global notices. Cache appropriately.
public get_persistent_global_notices(array $args = array(), mixed $global_notices = array()): array|bool|mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$args |
array | Array of arguments. |
$global_notices |
mixed |
Get Courier all notices.
public get_notices(array $args = array(), array $ajax_post_data = array()): array
Parameters:
Parameter | Type | Description |
---|---|---|
$args |
array | Array of arguments. |
$ajax_post_data |
array | Array of data to customize the response |
Get a user's dismissed global notices
public get_global_dismissed_notices(int $user_id): array|void
Parameters:
Parameter | Type | Description |
---|---|---|
$user_id |
int | The ID of the user to get notices for. |
public get_user_notices(array $args = array()): array
Parameters:
Parameter | Type | Description |
---|---|---|
$args |
array |
Get all the relevant meta associated with a notice
public get_notice_meta(int $courier_notice_id): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$courier_notice_id |
int | PostID of the Notice |
Automatically generated on 2024-08-26