title: find user membership plan WooCommerce
body: <p>I want to find the logged-in user's WooCommerce membership plan and then add CSS.
  Something like this code but this code doesn't work.</p>
  
  <pre><code>$user_id = get_current_user_id();
  if ( wc_memberships_is_user_active_member( $user_id, '1-level' ) ) {
      echo '&lt;style&gt;option[value=3333] {display:none;} option[value=3334] {display:none;}&lt;/style&gt;';
  } else if ( wc_memberships_is_user_active_member( $user_id, '2-level' ) ) {
      echo '&lt;style&gt;option[value=3332] {display:none;} option[value=3334] {display:none;}&lt;/style&gt;';
  }
  else if ( wc_memberships_is_user_active_member( $user_id, '3-level' ) ) {
      echo '&lt;style&gt;option[value=3332] {display:none;} option[value=3333] {display:none;}&lt;/style&gt;';
  }
  </code></pre>