View wc-optional-redirect-to-checkout.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: WC Redirect to checkout | |
* Plugin URI: http://stackoverflow.com/q/32962653/383847 | |
* Description: Redirect to checkout for certain products | |
* Version: 1.0.1 | |
* Author: Kathy Darling | |
* Author URI: http://kathyisawesome.com | |
* Requires at least: 3.8 | |
* Tested up to: 3.9 |
View KIA-comment-blacklist.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_abercrombie | |
_account | |
_adidas | |
_advantage | |
_alviero | |
_article | |
_asics | |
_babe | |
_backup | |
_barata |
View wc-bcc-emails.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add BCC to certain store emails. | |
* | |
* @param string $headers | |
* @param string $email_id | |
* @return string | |
*/ | |
function kia_add_bcc_to_specific_emails( $headers, $email_id ) { | |
$bbc_these_emails = array( |
View kia-sample-custom-field-for-woocommerce.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Sample Customizable Product Field for WooCommerce | |
* Plugin URI: https://www.kathyisawesome.com/add-a-custom-field-to-woocommerce-product/ | |
* Description: Add a custom text field to a WooCommerce Product | |
* Version: 1.1.0 | |
* Author: Kathy Darling | |
* Author URI: http://kathyisawesome.com | |
* Requires at least: 5.2.0 | |
* Tested up to: 5.2.2 |
View add-taxonomy-to-woocommerce-export.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: WooCommerce Add Taxonomy to Export | |
* Plugin URI: https://gist.github.com/helgatheviking/114c8df50cabb7119b3c895b1d854533/ | |
* Description: Add a custom taxonomy to WooCommerce import/export. | |
* Version: 1.0.1 | |
* Author: Kathy Darling | |
* Author URI: https://kathyisawesome.com/ | |
* | |
* Woo: 18716:fbca839929aaddc78797a5b511c14da9 |
View class-wc-kia-class-email.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
if ( ! class_exists( 'WC_KIA_Class_Email', false ) ) : | |
/** | |
* A custom Order WooCommerce Email class | |
* | |
* @since 0.1 | |
* @extends \WC_Email |
View display-attributes-as-table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Attributes shortcode callback. | |
*/ | |
function so_39394127_attributes_shortcode( $atts ) { | |
global $product; | |
if( ! is_object( $product ) || ! $product->has_attributes() ){ |
View custom-modal-metabox.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @type {Object} JavaScript namespace for our application. | |
*/ | |
var Custom_Modal = {}; | |
(function($, Custom_Modal) { | |
var $ = jQuery; | |
_.extend( Custom_Modal, { view: {}, controller: {} } ); |
View shortcodes.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* NB: updated version available here: https://github.com/helgatheviking/add-to-cart-form-shortcode | |
*/ | |
/** | |
* Add [add_to_cart_form] shortcode that display a single product add to cart form | |
* Supports id and sku attributes [add_to_cart_form id=99] or [add_to_cart_form sku=123ABC] | |
* Essentially a duplicate of the [product_page] | |
* but replacing wc_get_template_part( 'content', 'single-product' ); with woocommerce_template_single_add_to_cart() | |
* |
NewerOlder