Validate user profile when update? (1 post)

  1. tienthanh
    Posted 3 years ago #

    Hi all, i want to check a user meta value exist or not when a user updating their profile. If exist then display a message on user profile page. I have use profile_update action but it not as I expected. Anyone can help me?

    Here is my code:

    add_action( 'profile_update', 'my_profile_update' );
        function my_profile_update( $user_id, $old_user_data ) {
    		$uc = get_users(array('meta_key' => $meta_key, 'meta_value' => $meta_value));

Topic Closed

This topic has been closed to new replies.

About this Topic