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 //only copy this line if needed | |
// WPML WooCommerce Multilingual compatability with PDF Product Vouchers | |
function sv_wc_pdf_product_vouchers_wc_multilingual_duplicate_exception( $exclude, $cart_item ) { | |
if ( isset( $cart_item[ 'voucher_id' ] ) ) { | |
$exclude = true; | |
} | |
return $exclude; |
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 // only copy this line if needed | |
function sv_wc_customer_order_csv_auto_export_subscriptions_renewals_only( $order_ids ) { | |
if ( defined( 'DOING_CRON' ) && DOING_CRON && function_exists( 'wcs_order_contains_subscription' ) ) { | |
$subscriptions = $renewals = array(); | |
$subscriptions = array_filter( $order_ids, 'wcs_order_contains_subscription' ); | |
$renewals = array_filter( $order_ids, 'wcs_order_contains_renewal' ); |
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 // only copy this line if needed | |
add_filter( 'send_password_change_email', '__return_false' ); | |
add_filter( 'send_email_change_email', '__return_false' ); |
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 // only copy this line if needed | |
function sv_wc_api_allow_acof_protected_meta() { | |
add_filter( 'is_protected_meta', 'sv_wc_acof_is_protected_meta', 10, 2 ); | |
} | |
add_action( 'woocommerce_api_loaded', 'sv_wc_api_allow_acof_protected_meta' ); | |
function sv_wc_acof_is_protected_meta( $protected, $meta_key ) { | |
if ( 0 === strpos( $meta_key, '_wc_acof_' ) ) { |
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 // only copy this line if needed | |
add_filter( 'wc_authorize_net_cim_credit_card_payment_form_tokenization_forced', '__return_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
<?php // only copy this line if needed | |
/** | |
* Add the utm_nooverride parameter to any return urls. This makes sure Google Adwords doesn't mistake the offsite gateway as the referrer. | |
* | |
* @link https://github.com/woothemes/woocommerce-google-analytics-integration/blob/c805bb4c24de235227c2b4b21b179d73bd8a7861/includes/class-wc-google-analytics.php#L506-L522 | |
* | |
* @param string $return_url WooCommerce Return URL | |
* @return string URL | |
*/ |
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 // only copy this line if needed | |
add_filter( 'wc_customer_order_export_auto_export_new_orders_only', '__return_false' ); |
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 // only copy this line if needed | |
add_filter( 'wc_customer_order_csv_export_order_headers', 'wc_product_vendors_csv_export_integration_add_column_headers' ); | |
add_filter( 'wc_customer_order_csv_export_order_line_item', 'wc_product_vendors_csv_export_integration_modify_line_item', 10, 5 ); | |
add_filter( 'wc_customer_order_csv_export_order_row_one_row_per_item', 'wc_product_vendors_csv_export_integration_add_row_data', 10, 4 ); | |
function wc_product_vendors_csv_export_integration_add_column_headers( $headers ) { | |
$headers['vendor'] = 'Vendor'; |
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 // only copy this line if needed | |
/** | |
* Filter the quantity input's pattern attribute to fix the "Please | |
* match the requested format" HTML validation error that occurs when using | |
* WooCommerce Measurement Price Calculator with certain premium themes | |
* | |
* @props to mensmaximus {@link https://github.com/mensmaximus} for the | |
* proposed solution | |
* |