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
<# | |
.SYNOPSIS | |
This script processes email subscriber data in an Excel file, sends each entry to the Bento API for validation, and writes the boolean response to Column D. | |
.DESCRIPTION | |
- The script requires the System.Web assembly to be loaded for URL encoding. | |
- The script handles rate limiting (100 requests per minute) and includes progress tracking. | |
- A progress log is displayed in the terminal, showing current progress, out of total rows, and estimated time remaining. | |
.INSTRUCTIONS |
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 | |
// Only copy opening php tag if needed | |
/** | |
* Change heading for "Expires:" column in the WooCommerce Memberships My Account members area. | |
* | |
* @param array $columns Array of columns to display in membership area. | |
* @return $columns | |
*/ | |
function sprucely_rename_membership_end_date_column( $columns ) { |
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 //only copy this line if needed | |
/** | |
* Function filters the threshold for the amount of variables to load in the front end. | |
* | |
* @see https://woocommerce.wordpress.com/2015/07/13/improving-the-variations-interface-in-2-4/ | |
* | |
* @return int 100 The new threshold. | |
*/ | |
add_filter( 'woocommerce_ajax_variation_threshold', function() { return 100; } ); |
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
blueprint: | |
name: Inovelli Red Series LZW31-SN Dimmer (ZWave-JS) | |
description: Create automations for the Inovelli Red Series LZW31-SN Dimmer using the ZWave-JS integration. | |
domain: automation | |
input: | |
inovelli_switch: | |
name: Inovelli Dimmer | |
description: "List of available inovelli LZW31-SN dimmers." | |
selector: | |
device: |
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 | |
/** | |
* Event Tickets Plus - Disable Taxes for Ticket Products | |
*/ | |
function tribe_disable_taxes_ticket_product( $post_id, $ticket ) { | |
update_post_meta( $ticket->ID, '_tax_status', 'none' ); | |
update_post_meta( $ticket->ID, '_tax_class', 'zero-rate' ); | |
} | |
add_action( 'event_tickets_after_save_ticket', 'tribe_disable_taxes_ticket_product', 10, 2 ); |
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
/* Allow payment from WC generated invoice without login | |
* @see https://wordpress.org/support/topic/order-pay-without-login/ | |
*/ | |
function allow_payment_without_login( $allcaps, $caps, $args ) { | |
// Check we are looking at the WooCommerce Pay For Order Page | |
if ( !isset( $caps[0] ) || $caps[0] != 'pay_for_order' ) | |
return $allcaps; | |
// Check that a Key is provided | |
if ( !isset( $_GET['key'] ) ) |
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 | |
function tribe_custom_theme_text_with_context ( $translation, $text, $context, $domain ) { | |
// Put your custom text here in a key => value pair | |
// Example: 'Text you want to change' => 'This is what it will be changed to' | |
// The text you want to change is the key, and it is case-sensitive | |
// The text you want to change it to is the value | |
// You can freely add or remove key => values, but make sure to separate them with a comma | |
// This example changes the label "Venue" to "Location", and "Related Events" to "Similar Events" |
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 | |
/* | |
* EXAMPLE OF CHANGING ANY TEXT (STRING) IN THE EVENTS CALENDAR | |
* See the codex to learn more about WP text domains: | |
* http://codex.wordpress.org/Translating_WordPress#Localization_Technology | |
* Example Tribe domains: 'tribe-events-calendar', 'tribe-events-calendar-pro'... | |
*/ | |
function tribe_custom_theme_text ( $translation, $text, $domain ) { | |
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 | |
/** | |
* Resolve conflict with YITH Product Addons and WooCommerce Subscriptions | |
* Fixes issue where renewal orders are left unpaid upon checkout and a new parent order and subscription is created. | |
* | |
* @author support@yith.com | |
*/ | |
remove_filter( 'woocommerce_order_again_cart_item_data', array( 'YITH_WAPO_Frontend', 're_add_cart_item_data' ), 10, 3 ); |
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_action( 'gform_user_registered','we_autologin_gfregistration', 10, 4 ); | |
/** | |
* Auto login to site after GF User Registration Form Submittal | |
* | |
*/ | |
function we_autologin_gfregistration( $user_id, $config, $entry, $password ) { | |
wp_set_auth_cookie( $user_id, false, '' ); | |
} |
NewerOlder