Last active
November 3, 2020 11:51
-
-
Save hedqvist/9f68956593754131f2802db2427d7643 to your computer and use it in GitHub Desktop.
Swish - Agelimit
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 - Age-limit set to 18 | |
| * @author Redlight Media AB / Christopher Hedqvist | |
| * @compatible WooCommerce 4.6.0 | |
| */ | |
| function redlight_swish_age_limit( $data, $order ) { | |
| $data['ageLimit'] = 18; | |
| return $data; | |
| } | |
| add_filter('redlight_swish_ecommerce_paymentrequest_data', 'redlight_swish_age_limit', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment