• Resolved beccagreene

    (@beccagreene)


    Hello, I want to have it so that after an Ultimate Member application form is filled out by a registered user, “Application Status: Pending” text shows up on their account page. Does Ultimate Member have this functionality, how can I achieve this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    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.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    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,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Logic/conditional question’ is closed to new replies.