Skip to content

Instantly share code, notes, and snippets.

@hedqvist
Created November 21, 2019 15:17
Show Gist options
  • Select an option

  • Save hedqvist/df91d44a5279cc87ec56de15c83da8f7 to your computer and use it in GitHub Desktop.

Select an option

Save hedqvist/df91d44a5279cc87ec56de15c83da8f7 to your computer and use it in GitHub Desktop.
Change Return Label date diff for Unifaun
<?php
/**
* @snippet WooCommerce - Sets date difference from Orderdate to display return label button
* @author Redlight Media AB / Christopher Hedqvist
* @compatible WooCommerce 3.8.0
*/
function redlight_unifaun_return_label_date_diff( $diff ) {
return 60;
}
add_filter( 'ac_wc_unifaun_return_label_date_diff', 'redlight_unifaun_return_label_date_diff', 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment