Support » Plugin: WP Approve User » Not Approved User Conditional

Viewing 1 replies (of 1 total)
  • Browsing the code found this believe it should do the trick.

    if ( ! is_wp_error( $userdata ) && ! get_user_meta( $userdata->ID, 'wp-approve-user', true ) && get_bloginfo( 'admin_email' ) !== $userdata->user_email ) {
    // Do something 
    } else {
    // Do something else
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Not Approved User Conditional’ is closed to new replies.