Check if loggedin user has VAT number verified

Forums EU/UK VAT Manager for WooCommerce Check if loggedin user has VAT number verified

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #134080
    squashtoppertje
    Participant

    Hi,

    So I found out it is stored as a user_meta.

    If anyone else wants to know this, this is my solution:

    global $user;
    $meta_key = ‘billing_eu_vat_number’;
    $user_id = get_current_user_id();
    if ( is_user_logged_in() ) {
    if ( metadata_exists( ‘user’, $user_id, $meta_key ) ) {
    print_r(“Do something!”);
    } else {
    print_r(“Do something else!”);
    }
    }

    #134176
    Moshtafizur
    Participant

    Hi there,

    We didn’t get any notification of this query.

    But I am happy to know the issue has been resolved.

    Kind regards.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.