View wc-google-analytics-pro-tracking-events.php
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 ); |
View wc-drip-subscribe-params.php
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; | |
} |
View wc-photography-change-visibility.php
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' ); |
View wc-pdf-watermarks-change-password-pdf-downloads.php
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(); | |
} |
View wc-ninja-forms-product-add-ons-hide-zero-price-add-ons.php
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' ) . ')'; |
View wc-anti-fraud-remove-risk-countries.php
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' ); |
View wc-ninja-forms-product-add-ons-hide-sub-prices.php
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 ''; | |
} |
View wc-change-the-speed.php
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; | |
} |
View wc-360-rotate90.php
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); | |
} |
View wc-rotate-minus90degrees.php
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