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
/* hide subscription cancel button */ | |
.subscription_details a.button.cancel { | |
display: none; | |
} |
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
function custom_add_price_for_addons ( ) { | |
return false; | |
} | |
add_filter( 'woocommerce_addons_add_price_to_name', 'custom_add_price_for_addons' ); |
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
function custom_woocommerce_is_attribute_in_product_name( ) { | |
return false; | |
} | |
add_filter( 'woocommerce_is_attribute_in_product_name', 'custom_woocommerce_is_attribute_in_product_name' ); |
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
function custom_woocommerce_set_subscription_order_status ( $status ) { | |
return 'on-hold'; | |
} | |
add_filter( 'woocommerce_gocardless_create_payment_subscription_order_status', 'custom_woocommerce_set_subscription_order_status' ); | |
add_filter( 'woocommerce_gocardless_create_payment_subscription_renewal_order_status', 'custom_woocommerce_set_subscription_order_status' ); |
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
add_action( 'woocommerce_checkout_create_order_line_item', 'setup_gforms_values_on_order_item_meta', 0, 0 ); | |
function setup_gforms_values_on_order_item_meta() { | |
global $gforms_values_as_order_meta_registered; | |
if ( ! $gforms_values_as_order_meta_registered ) { | |
add_filter( 'woocommerce_gforms_use_label_as_value', '__return_false' ); | |
$gforms_values_as_order_meta_registered = 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
add_filter( 'woocommerce_form_field_args', 'custom_form_field_args', 30, 3 ); | |
function custom_form_field_args( $args, $key, $value ) { | |
$args['autofocus'] = ''; | |
return $args; | |
}; |
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
function addTrackingCodeinGAPlugin ( $requireCode ) { | |
$requireCode .= "ga('require', 'GTM-KZ35PPF');" | |
return $requireCode; | |
} | |
add_filter( 'woocommerce_ga_snippet_require', 'addTrackingCodeinGAPlugin', 10, 1 ); |
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
function automaticallyApproveRegisteredVendors ( $vendorData ) { | |
$vendorData['role'] = 'wc_product_vendors_admin_vendor'; | |
return $vendorData; | |
} | |
add_filter( 'wcpv_registration_default_user_data', 'automaticallyApproveRegisteredVendors', 10, 1); |
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
add_action('init','remove_loop_button'); | |
function remove_loop_button(){ | |
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); | |
} | |
add_action('woocommerce_after_shop_loop_item','replace_add_to_cart'); | |
function replace_add_to_cart() { | |
global $product; |
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
add_filter( 'woocommerce_defer_transactional_emails', '__return_true' ); |
OlderNewer