This file contains hidden or 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 | |
add_filter( 'script_loader_tag', 'add_rocket_loader_attribute_to_jilt', 10, 3 ); | |
function add_rocket_loader_attribute_to_jilt( $tag, $handle, $src ) { | |
if ( 'wc-jilt' === $handle ) { | |
$tag = '<script data-cfasync="false" type="text/javascript" src="' . esc_url( $src ) . '"></script>'; | |
} |
This file contains hidden or 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 | |
// Add the following snippet below the line to the bottom of your theme's functions.php file or by using the Code Snippets plugin: https://wordpress.org/plugins/code-snippets/ | |
/******************************************************************************/ | |
add_action( 'save_post', function( $post_id, $post ) { | |
if ( doing_action( 'action_scheduler_stored_action' ) || doing_action( 'woocommerce_webhook_process_delivery' ) ) { | |
unset( $_REQUEST['pts_post_type'] ); | |
} | |
This file contains hidden or 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 Memberships ActionScheduler 3.0 Temporary Workaround | |
* Description: This is a temporary workaround to prevent fatal errors when using WooCommerce Memberships and WooCommerce Follow-up Emails. | |
* Author: SkyVerge | |
* Version: 1.0 | |
*/ | |
defined('ABSPATH') or exit; |
This file contains hidden or 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 | |
// Add this to your theme's functions.php file or use a plugin | |
// like Code Snippets - https://wordpress.org/plugins/code-snippets/ | |
add_action( 'edd_payment_saved', function( $payment_id, $payment ) { | |
// EDD Manual Payment callback | |
if ( doing_action( 'edd_create_payment' ) ) { |
This file contains hidden or 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 | |
// Add the following snippet to your theme's functions.php file, or use a plugin like Code Snippets. | |
add_action( 'init', function() { | |
// Only make changes as long as Jilt for WooCommerce is installed and connected to Jilt | |
if ( function_exists( 'wc_jilt' ) && wc_jilt()->get_integration()->is_jilt_connected() ) { | |
// Disable Storefront JS for Phone Order carts |
This file contains hidden or 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
# Only tried this on mac, would probably need some adaptation for Linux folks :) | |
# | |
# Add this to your .bashrc or .zshrc file and reload terminal for it to take effect | |
# Output GitHub PR URL for the current git repo | |
ghpr() { | |
repo=$(git remote -v | sed -n 's/^origin.*git@github\.com:\(.*\)\.git.*fetch.*/\1/p') | |
branch=$(git branch --show-current) | |
echo "https://github.com/$repo/compare/$branch?expand=1" | |
} |
OlderNewer