Skip to content

Instantly share code, notes, and snippets.

@bekarice
bekarice / messages.js
Last active July 9, 2020 18:33 — forked from deivamagalhaes/messages.json
SkyVerge Messages Sample
[
{
"id": "first-test-message", // required
"datePublished": "2020-07-07", // required,
"expirationDate": "2020-08-01", // optional
"subject": "Hey!", // required
"body": "This is a message from the cool folks at SkyVerge", // required
"ctaButton": "View plugin", // optional
"ctaHref": "https://woocommerce.com/product/plugin-slug", // required only if ctaButton included
"visibility": { // all optional
<?php
// add custom column headers
function wc_csv_export_modify_column_headers( $column_headers ) {
$new_headers = array(
'column_1' => 'Column 1',
'column_2' => 'Column 2',
// add other column headers here in the format column_key => Column Name
);