Created
November 21, 2019 15:17
-
-
Save hedqvist/df91d44a5279cc87ec56de15c83da8f7 to your computer and use it in GitHub Desktop.
Change Return Label date diff for Unifaun
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 | |
| /** | |
| * @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