Skip to content

Instantly share code, notes, and snippets.

View octaedro's full-sized avatar

Fernando Marichal octaedro

View GitHub Profile
@octaedro
octaedro / woocommerce-notes-testing.php
Last active April 9, 2021 03:44
Adds 4 new notes with layout: banner, thumbnail, and plain, OR sets all the notes to not deleted. One of those notes is a StoreAlert. Now also adds an email note after pressing `Add Email Notes`.
<?php
/**
* Plugin Name: WooCommerce Prepare Notes Testing
* Plugin URI: https://woocommerce.com
* Description: Adds 4 new notes with layout: banner, thumbnail, and plain, OR sets all the notes to not deleted. One of those notes is a StoreAlert. Now also adds an email note after pressing `Add Email Notes`.
* Author: WooCommerce
* Domain Path: /test_notes
* Version: 0.4
*/
<?php
/**
* Plugin Name: Add custom event to record
* Description: This plugin adds the code to test event recording validation (on the client side).
* Version: 0.1
*
*/
function add_custom_event() {
wc_enqueue_js(