Forked from dparker1005/my_pmproz_after_change_membership_level_data.php
Last active
February 27, 2020 13:52
-
-
Save MaryOJob/beff8c053be6ba95e325e3aa9fac8a11 to your computer and use it in GitHub Desktop.
Adds a custom field created via RH to zap 'pmpro_after_checkout_data'.
This file contains 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 // do not copy this line | |
// Copy from below here | |
function my_pmproz_after_checkout_data( $data, $user_id, $level, $order ) { | |
$data['my_usermeta'] = get_user_meta($user_id, 'my_usermeta', true); // add your custom usermeta key in place of my_usermeta | |
return $data; | |
} | |
add_filter( 'pmproz_after_checkout_data', 'my_pmproz_after_checkout_data', 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment