Skip to content

Instantly share code, notes, and snippets.

@andfinally
Last active March 18, 2024 15:22
Show Gist options
  • Save andfinally/8ffca3fe3844fee6e146a80e563f00bb to your computer and use it in GitHub Desktop.
Save andfinally/8ffca3fe3844fee6e146a80e563f00bb to your computer and use it in GitHub Desktop.
API test – expired items
[
{
"date_from_gmt": "2024-02-14 00:00",
"date_to_gmt": "2024-03-17 22:59",
"format": "notice",
"style": "info",
"pages": [
{ "page": "wc-admin", "path": "/extensions" },
{ "page": "wc-admin", "path": "/extensions", "tab": "extensions" },
{ "page": "wc-admin", "path": "/extensions", "tab": "themes" }
],
"content": {
"en_US": "<b>Limited time sale</b> up to 40% off. Sale ends March 29 at 2pm UTC."
},
"icon": "percent",
"is_dismissible": true
},
{
"date_from_gmt": "2024-02-14 00:00",
"date_to_gmt": "2024-03-17 22:59",
"format": "notice",
"style": "success",
"pages": [{ "page": "wc-admin", "path": "/extensions", "tab": "extensions" }],
"content": {
"en_US": "<b>Limited time sale</b> up to 40% off. Sale ends March 29 at 2pm UTC.",
"fr_FR": "<b>Vente \u00e0 dur\u00e9e limit\u00e9e</b> jusqu'\u00e0 40 % de r\u00e9duction. La vente se termine le 29 mars \u00e0 14h UTC."
}
},
{
"date_from_gmt": "2024-02-14 00:00",
"date_to_gmt": "2024-02-20 22:59",
"format": "notice",
"style": "success",
"pages": [{ "page": "wc-admin", "path": "/extensions", "tab": "extensions" }],
"content": {
"en_US": "Test item, should be filtered out"
}
},
{
"date_from_gmt": "2024-02-13 00:00",
"date_to_gmt": "2024-03-17 22:59",
"format": "menu_bubble",
"content": { "en_US": "Sale" },
"menu_item_id": "woocommerce-marketplace"
},
{
"date_from_gmt": "2024-02-01 00:00",
"date_to_gmt": "2024-02-01 22:59",
"format": "menu_bubble",
"content": { "en_US": "Test item, should be filtered out" },
"menu_item_id": "woocommerce-marketplace"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment