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
wc_google_analytics_pro()->get_integration()->custom_event( $event_name, $properties ); |
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_filter( 'wcdrip_checkout_subscribe_params', 'drip_make_optin_single' ); | |
add_filter( 'wcdrip_register_subscribe_params', 'drip_make_optin_single' ); | |
function drip_make_optin_single( $params ) { | |
$params['double_optin'] = false; | |
return $params; | |
} |
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_filter( 'woocommerce_photography_customers_can_change_visibility', '__return_true' ); |
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
/* | |
* Snippet to change password used for protecting PDF download | |
* Code goes in the functions.php file in your theme. | |
*/ | |
function wc_pdf_watermark_change_pdf_password( $order_id, $product_id ) { | |
// Use the order number for the password instead of the billing email | |
$order = wc_get_order( $order_id ); | |
return $order->get_order_number(); | |
} |
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
/* | |
* Snippet to hide price add-ons equal to zero. | |
* Code goes in the functions.php file in your theme. | |
*/ | |
add_filter( 'wc_nf_addons_format_cart_item_price' , 'wc_ninja_forms_hide_zero_price' ); | |
function wc_ninja_forms_hide_zero_price( $value ) { | |
$hide_price = ' (' . wc_price( '0.00' ) . ')'; |
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 wc_af_example_rule_countries( $countries ) { | |
$countries[] = 'NL'; // Adding The Netherlands as a risk country | |
return $countries; | |
} | |
add_filter( 'wc_af_rule_countries', 'wc_af_example_rule_countries' ); |
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
/* | |
* Snippet to hide all sub prices | |
* Code goes in the functions.php file in your theme. | |
*/ | |
add_filter( 'wc_nf_addons_cart_option', 'wc_ninja_forms_price' ); | |
function wc_ninja_forms_price( $display ) { | |
return ''; | |
} |
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_filter( 'wc360_js_speed', 'wcs_360_custom_speed' ); | |
function wcs_360_custom_speed() { | |
return 30; | |
} |
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
/* Rotate 360 Image 90 Degrees */ | |
.threesixty .threesixty_images img { | |
-ms-transform: rotate(90deg); /* IE 9 */ | |
-webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */ | |
transform: rotate(90deg); | |
} |
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
/* Rotate 360 Image -90 Degrees */ | |
.threesixty .threesixty_images img { | |
-ms-transform: rotate(-90deg); /* IE 9 */ | |
-webkit-transform: rotate(-90deg); /* Chrome, Safari, Opera */ | |
transform: rotate(-90deg); | |
} |
OlderNewer