Created
March 30, 2021 22:43
-
-
Save greenhornet79/82f2f500be8f52c844f9de480c4fd2df to your computer and use it in GitHub Desktop.
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 | |
// save data to the user after the corporate subscription is created | |
add_action('leaky_paywall_after_corporate_subscription_user_created', 'zeen101_corporate_after_created', 10, 2); | |
function zeen101_corporate_after_created($user_id, $post_data) | |
{ | |
if (isset($post_data['phone'])) { | |
update_user_meta($user_id, '_phone', sanitize_text_field($post_data['phone'])); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment