Last active
May 23, 2024 11:02
-
-
Save mclarenmervin/376679d5e29264258b5f5114fdd22d2d to your computer and use it in GitHub Desktop.
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 | |
function custom_pmpro_save_checkout_fields($user_id) { | |
if(isset($_REQUEST['bdob'])) { | |
update_user_meta($user_id, 'pmpro_dob', $_REQUEST['bdob']); | |
} | |
} | |
add_action('pmpro_after_checkout', 'custom_pmpro_save_checkout_fields'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment