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 // For implementation instructions see: https://aceplugins.com/how-to-add-a-code-snippet/ | |
/** | |
* Remove add to cart notice in WooCommerce | |
*/ | |
add_filter( 'wc_add_to_cart_message_html', '__return_empty_string' ); |
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 | |
// Copy from here | |
if ( function_exists( 'EDD_Enhanced_Ecommerce_Tracking' ) && edd_get_option( 'eddeet_implementation_method' ) == 'measurement-protocol' ) { | |
remove_action( 'wp_footer', array( EDD_Enhanced_Ecommerce_Tracking()->implementation, 'output_script' ) ); | |
// Add to header -- Remove/comment the below if you want to completely remove the tracking script. | |
add_action( 'wp_head', array( EDD_Enhanced_Ecommerce_Tracking()->implementation, 'output_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 | |
if ( function_exists( 'Conversio' ) ) { | |
// Remove all existing triggers | |
remove_action( 'woocommerce_order_status_pending_to_processing', array( Conversio()->email, 'send_transactional_email' ) ); | |
remove_action( 'woocommerce_order_status_on-hold_to_processing', array( Conversio()->email, 'send_transactional_email' ) ); | |
remove_action( 'woocommerce_order_status_pending_to_completed', array( Conversio()->email, 'send_transactional_email' ) ); | |
// Add custom triggers - change accordingly to your own needs | |
add_action( 'woocommerce_order_status_pending_to_completed', array( Conversio()->email, 'send_transactional_email' ) ); // Specific status change |
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 // For implementation instructions see; https://aceplugins.com/how-to-add-a-code-snippet/ | |
/** | |
* Product quantity through URL parameter. | |
* | |
* Allow for setting a suggested product quantity in the product quantity field by adding | |
* a &quantity=5 URL parameter. | |
* | |
* @param array $args Original arguments. | |
* @param WC_Product $product Product being viewed. |
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 // For implementation instructions see: https://aceplugins.com/how-to-add-a-code-snippet/ | |
/** | |
* Disable WP 4.2 emoji | |
*/ | |
function ace_remove_emoji() { | |
add_filter( 'emoji_svg_url', '__return_false' ); | |
remove_action( 'admin_print_styles', 'print_emoji_styles' ); | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
if ( $max_value && $min_value === $max_value ) { | |
?><div class="quantity hidden"><input type="hidden" id="<?php echo esc_attr( $input_id ); ?>" class="qty" name="<?php echo esc_attr( $input_name ); ?>" value="<?php echo esc_attr( $min_value ); ?>" /></div><?php | |
} elseif ( ! empty( $max_value ) && ! empty( $step ) ) { | |
?><div class="quantity"> | |
<label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php esc_html_e( 'Quantity', 'woocommerce' ); ?></label> | |
<select name="<?php echo esc_attr( $input_name ); ?>" class="qty" id="<?php echo esc_attr( $input_id ); ?>"><?php | |
for ( $i = $min_value; $i <= $max_value; $i = $i + $step ) : |
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 | |
/** | |
* This template is used to display the profile editor with [edd_profile_editor] | |
*/ | |
global $current_user; | |
if ( is_user_logged_in() ): | |
$user_id = get_current_user_id(); | |
$first_name = get_user_meta( $user_id, 'first_name', true ); | |
$last_name = get_user_meta( $user_id, 'last_name', true ); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
background: rgba(255, 0, 0, 0.5); | |
font-size: 30px; | |
} | |
</style> | |
</head> |
NewerOlder