Hi @beccagreene
I would store a new user meta on user registration with the following code:
add_action( 'um_registration_complete', 'um_110821_application_status' ,1 );
function um_110821_application_status( $user_id ){
update_user_meta( $user_id, "application_status", "Pending");
}
and to display it on the account page, you can try this code:
add_filter("um_before_form","um_110821_display_above_account");
function um_110821_display_above_account( $args ){
if( "account" == $args['mode'] ) {
$user_id = um_user("ID");
$app_status = get_user_meta( $user_id, "application_status", true);
if( "Pending" == $app_status ){
echo '<p class="um-notice err"><i class="um-icon-ios-close-empty" onclick="jQuery(this).parent().fadeOut();"></i>Application Status: ' . $app_status. '</p>';
}
}
}
Regards,
-
This reply was modified 4 years, 7 months ago by
Champ Camba.
-
This reply was modified 4 years, 7 months ago by
Champ Camba.
-
This reply was modified 4 years, 7 months ago by
Champ Camba.
Hi @beccagreene
…This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. ..Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. 🙂
Regards,