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 | |
add_filter( 'automatewoo/referrals/share_form/email_field_count', function() { | |
return 3; | |
}); |
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 | |
// Minimum version WC 3.0 | |
add_filter( 'woocommerce_checkout_fields', 'my_filter_woocommerce_checkout_fields'); | |
function my_filter_woocommerce_checkout_fields($fields) { | |
$fields['billing']['billing_email']['priority'] = 5; | |
$fields['billing']['billing_email']['class'] = array( 'form-row-wide' ); | |
return $fields; | |
} |
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 | |
/** | |
* @since 3.4.3 | |
*/ | |
add_filter( 'automatewoo/workflow/mailer', 'my_filter_automatewoo_workflow_mailer' ); | |
/** | |
* @param AutomateWoo\Mailer $mailer | |
* @return AutomateWoo\Mailer |
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 | |
add_filter( 'automatewoo/customer/last_order_date_statuses', function( $statuses ){ | |
$statuses[] = 'my-custom-status'; | |
return $statuses; | |
}); |
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 | |
// added in v3.3.3 | |
add_filter( 'automatewoo/variables/coupons/use_email_restriction', '__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 | |
add_filter( 'automatewoo/coupon_generator/key_length', 'my_filter_automatewoo_coupon_length', 10, 2 ); | |
/** | |
* @param int $length | |
* @param AutomateWoo\Coupon_Generator $generator | |
* @return int | |
*/ | |
function my_filter_automatewoo_coupon_length( $length, $generator ) { |
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 | |
// The length doesn't include the specified coupon prefix | |
add_filter( 'automatewoo/coupon_generator/key_length', function() { | |
return 8; | |
}); |
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 | |
add_filter('automatewoo/referrals/coupon_data', 'my_automatewoo_referrals_coupon_data' ); | |
/** | |
* @param array $coupon_data | |
* @return array | |
*/ | |
function my_automatewoo_referrals_coupon_data( $coupon_data ) { | |
$coupon_data['exclude_sale_items'] = 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 | |
/** | |
* Use variable {{ shop.products | type: 'custom', filter: 'my_shop_products_custom_filter' }} | |
*/ | |
add_filter( 'my_shop_products_custom_filter', 'my_shop_products_custom_filter', 10, 2 ); | |
/** | |
* @param $product_ids array | |
* @param $workflow AutomateWoo\Workflow | |
* @return array |