Skip to content

Instantly share code, notes, and snippets.

Kathy helgatheviking

Block or report user

Report or block helgatheviking

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@helgatheviking
helgatheviking / wc-variable-nyp-pb-compat.php
Created May 22, 2019
Add support for Variable NYP products to Product Bundles.
View wc-variable-nyp-pb-compat.php
<?php
/*
* Plugin Name: WC Variable NYP + Product Bundles compat
* Plugin URI: https://gist.github.com/helgatheviking/88a967bb0da86b6ff415fce10c8c16ea
* Description: Add support for Variable NYP products to Product Bundles.
* Version: 1.0.0
* Author: Kathy Darling
* Author URI: http://kathyisawesome.com
* Requires at least: 5.0.0
* Tested up to: 5.1.1
@helgatheviking
helgatheviking / percentage-error-strings-for-mnm.php
Created Apr 23, 2019
Percentage error strings for Mix and Match
View percentage-error-strings-for-mnm.php
/**
* Modify the MNM Javascript error strings
*
* @param array
* @return array
*/
function kia_mnm_add_to_cart_params( $args ) {
$args['i18n_percentage_message'] = __( 'Your bag is %s percent full.', 'your-text-domain' );
$args['i18n_percentage_error'] = __( '%v Please continue to 100 percent.', 'your-text-domain' );
@helgatheviking
helgatheviking / wc-nyp-claue-compat.php
Last active Mar 30, 2019
Add support for Claue theme's version of quickview.
View wc-nyp-claue-compat.php
<?php
/**
* Plugin Name: WooCommerce Name Your Price Compatibility for Claue Theme
* Plugin URI: http://www.woocommerce.com/products/name-your-price/
* Description: Add support for Claue theme's version of quickview.
* Version: 1.0.0.beta.1
* Author: Kathy Darling
* Author URI: http://kathyisawesome.com/
*
* Copyright: © 2019 Kathy Darling
@helgatheviking
helgatheviking / charitable-recurring-107-cli-data-generator.php
Last active May 3, 2019
Create dummy data for Charitable Recurring 1.0.7
View charitable-recurring-107-cli-data-generator.php
<?php
/**
* Plugin Name: Charitable - Recurring Donations 1.0.7 CLI Data Generator
* Plugin URI: https://www.wpcharitable.com/extensions/charitable-recurring-donations/
* Description: Create dummy data for Recurring 1.0.7
* Version: 1.0.0.beta.1
* Author: Kathy Darling
* Author URI: https://www.kathyisawesome.com
* Requires at least: 5.0
* Tested up to: 5.1
@helgatheviking
helgatheviking / wc-fgc-sync.php
Created Mar 25, 2019
Sync the quantity of the Free Gift product to the quantity of a required purchased product
View wc-fgc-sync.php
<?php
/**
* Plugin Name: WooCommerce Free Gift Coupons: Sync to Required Products
* Plugin URI: http://www.woocommerce.com/products/free-gift-coupons/
* Description: Sync the quantity of the Free Gift product to the quantity of a required purchased product
* Version: 1.0.0.beta.1
* Author: Kathy Darling
* Author URI: http://kathyisawesome.com
* Requires at least: 4.4
* Tested up to: 5.1.0
@helgatheviking
helgatheviking / charitable-cli-data-generator.php
Last active Mar 21, 2019
Create dummy data for Charitable
View charitable-cli-data-generator.php
<?php
/**
* Plugin Name: Charitable - Donations CLI Data Generator
* Plugin URI: https://www.wpcharitable.com
* Description: Create dummy data
* Version: 1.0.0.beta.1
* Author: Kathy Darling
* Author URI: https://www.kathyisawesome.com
* Requires at least: 5.0
* Tested up to: 5.1
@helgatheviking
helgatheviking / charitable-recurring-cli-data-generator.php
Last active Apr 3, 2019
Create dummy data for Charitable Recurring 1.1
View charitable-recurring-cli-data-generator.php
<?php
/**
* Plugin Name: Charitable - Recurring Donations CLI Data Generator
* Plugin URI: https://www.wpcharitable.com/extensions/charitable-recurring-donations/
* Description: Create dummy data
* Version: 1.0.0.beta.2
* Author: Kathy Darling
* Author URI: https://www.kathyisawesome.com
* Requires at least: 5.0
* Tested up to: 5.1
@helgatheviking
helgatheviking / charitable-data-spawn.php
Created Mar 18, 2019
Generate Dummy Donation Data for Charitable
View charitable-data-spawn.php
<?php
/**
* This is a script that creates campaigns & donations.
*
* It's designed to be called with wp-cli via the command line.
*
* wp eval-file charitable-spawn-data <donations> <campaigns>
*/
@helgatheviking
helgatheviking / wc-nyp-loop-input.php
Last active Feb 20, 2019
Add Name Your Price inputs to loop
View wc-nyp-loop-input.php
<?php
/*
* Plugin Name: WooCommerce Name Your Price: Loop Input
* Plugin URI: https://gist.github.com/helgatheviking/6459a14d1dfcc87a675dbf4f1aa19140
* Description: Add Name Your Price inputs to loop
* Version: 1.0.0
* Author: Kathy Darling
* Author URI: http://kathyisawesome.com
* Requires at least: 5.0.0
* Tested up to: 5.0.3
@helgatheviking
helgatheviking / class-wc-shipstation-api-export.php
Created Jan 30, 2019 — forked from skillio/class-wc-shipstation-api-export.php
Woocommerce Shipstation Integration tiny patch--xml output filter
View class-wc-shipstation-api-export.php
/* Apologies for formatting, this was originally intended to be a ticket, but it errored. */
// Line 295 of Woocommerce Shipstation Integration 4.1.27 includes/api-requests/class-wc-shipstation-api-export.php is currently:
$orders_xml->appendChild( $order_xml );
// Proposed Change:
$orders_xml->appendChild( apply_filters( 'woocommerce_shipstation_export_order_xml', $order_xml) );
/*
Lots of ways this can be used, for example, pulling from a staging site and using an internal email so as not to notify customers when testing.
You can’t perform that action at this time.