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 billing-details-translation.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
function kia_translate_billing_details_when_free( $translated_text, $untranslated_text, $domain ) { | |
if ( function_exists( 'wc' ) && 'woocommerce' === $domain ) { | |
//make the changes to the text | |
switch( $untranslated_text ) { | |
case 'Billing details': | |
if ( ! WC()->cart->needs_shipping() && 0.0 === floatval( WC()->cart->get_total( 'edit' ) ) ) { | |
$translated_text = __( 'NOT billing details', 'kia_textdomain' ); |
View wc-clear-persistent-carts-daily.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: Clear persistent carts daily | |
* Plugin URI: https://gist.github.com/ | |
* Description: Schedule a task to run daily to delete WooCommerce persistent carts | |
* Version: 1.0.0 | |
* Author: Kathy Darling | |
* Author URI: http://kathyisawesome.com/ | |
* WC requires at least: 6.3.0 | |
* WC tested up to: 6.3.0 |
View wc-attributes-shortcode.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: Attributes shortcode | |
* Plugin URI: https://gist.github.com/helgatheviking/1d34f84fc93b8a08c258a37768802625 | |
* Description: Create a shortcode to display product attribute taxonomies | |
* Version: 6.8.0 | |
* Author: Kathy Darling | |
* Author URI: https://kathyisawesome.com/ | |
* | |
* Requires PHP: 7.4 |
View mnm-product-thumbnail.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 | |
/** | |
* Mix and Match Item Thumbnail | |
* | |
* This template can be overridden by copying it to yourtheme/woocommerce/single-product/mnm/mnm-product-thumbnail.php. | |
* | |
* HOWEVER, on occasion WooCommerce Mix and Match will need to update template files and you | |
* (the theme developer) will need to copy the new files to your theme to | |
* maintain compatibility. We try to do this as little as possible, but it does | |
* happen. When this occurs the version of the template file will be bumped and |
View give-count-unique-donors.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 | |
/** | |
* Give count unique donors | |
* | |
* @param array $atts [ | |
* 'form_id' => int The form ID to count donors for | |
* ] | |
*/ | |
function kia_give_donor_count( $atts ) { |
View dequeue-script-example.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
function kia_unload_script() { | |
if ( function_exists( 'is_product' ) && is_product() ) { | |
wp_dequeue_script( 'wc-single-product' ); | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'kia_unload_script', 20 ); |
View wc-mnm-simplify-variation-names.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 Mix and Match Products - Simplify variation names | |
* Plugin URI: https://woocommerce.com/products/woocommerce-mix-and-match-products | |
* Description: Reduce container variation names to only their attributes | |
* Version: 1.0.0 | |
* Author: Kathy Darling | |
* Author URI: https://kathyisawesome.com | |
* Requires at least: 5.5 | |
* Requires PHP: 7.0 |
View short-description-in-loop.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 | |
/** | |
* Display short descriptions in loop | |
*/ | |
function kia_display_short_desciption_in_loop() { | |
global $product; | |
$short_description = $product->get_short_description(); | |
View kia-local-dev.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: Local Dev modifications | |
* Plugin URI: https://kathyisawesome.com/ | |
* Description: Custom snippets for local development | |
* Version: 1.0.0 | |
* Author: Kathy Darling | |
* Author URI: https://kathyisawesome.com | |
*/ |
NewerOlder