The reason you get the “First” Array is that you don’t use the “single” option of the get_user_meta function. Try this:
$arr = get_user_meta($user->ID, 'wpcf-team-experience-member-type',true);
$options = array();
if(is_array($arr)){
foreach($arr as $key => $value){
foreach($value as $arrvalue){
$options[] = $arrvalue;
}
}
}
var_dump($options);
This should dump all the options that maybe are in there.
Happy Coding,
Kuchenundkakao
Related Posts:
- Building a scalable WordPress favouriting plugin – one serialised meta value array or many meta records
- Upload files programmatically to users
- Redirect to another page using contact form 7? [closed]
- Auto populate a user custom field from another user custom field
- Get all user meta_keys and then group users by matching values
- How can i force Display names to be the same as Usernames?
- Autogenerate wordpress shortcodes using array?
- How can I show drafts in wp_dropdown_pages list?
- How to get user-meta from Social Login registered users?
- How can I save repeatable fields with one value inside an array?
- Edit Imported advanced Custom Fields from wordpress Dashboard
- Add custom meta box on Post page
- how to display all posts Custom fields dynamically?
- delete_user_meta Delete one value out of array
- Advanced Custom Fields query
- Custom options page checkbox will not save, despite working with text
- How to create Repeater fields using Advanced Custom Fields?
- Plugin allowing for artists, events and venues
- Plugin not saving values when placed in a folder within /wp-content/plugins
- Security checking in meta_box save is reluctant?
- update_user_meta add value on the top on existing value
- WordPress CMB2 – Run function on save
- Average Account Age
- How to keep users unique id stored in session in addition to IP in WordPress plugin?
- Carbon Fields use in custom plugin class
- How I can get custom field’s current value?
- UnWanted Custom field added in the wp page edit area
- Woocommerce – How to populate custom select field with stored values on checkout page?
- How to query the custom fields by language?
- Assign / update custom field value for all posts (How can I assign only to posts without custom field value?)
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- How to toggle between two custom fields in WordPress woocommerce ‘WC Product Field Group’ plugin?
- Modifying Author Link to add Author Meta in URL
- Using Wishlist Member and I need to access a user’s status
- Custom User meta field display
- Unable to select image using custom image field type
- Every new post/draft has a custom field variable “yst_is_cornerstone” showing
- Adding class to last list item? Not WP generated
- How to Resize the Custom Post Images?
- Amazon.com intergration with WordPress?
- Sticky option for custom post types without using custom fields or plugins
- Add to array, redirect and display
- Add key and value to an array in another file
- Adding option values as an array using a multi selectable select box
- How to add an extra, independent set of custom fields?
- How can I store data from custom fields to custom tables?
- Plugin that lets visitors Like a post (not facebook) and stores likes in custom meta?
- Parent Child Custom Fields with Advanced Custom Fields
- grab or load text on demand
- Dictionary-style definition list plugin
- Advanced Custom Fields Plugin – Images not displaying
- Adding custom Field To The Posts Listing
- What snippet do I need to type to show my ACF field show up on my theme?
- Is there a way to make [Table Of Content] plugin while not using revision data?
- Table of contents (TOC) plugin is not showing header tag
- Help with autofilling field
- Get user edit functions in frontend for site admin
- Register PODS Custom Field with WPGraphQL [closed]
- get_post_meta shortcode returns empty field
- Creating an array from form inputs before it is posted to the options database
- Adding an item to an anonymous array inside a filter?
- Adding Custom Endpoint in WordPress Rest API
- General Term for this form Field
- How do I change the functionality of an image slider which is part of ACF?
- Make custom post types using ACF
- User updating their profile wipes my custom fields
- How to pass multiple custom fields as shortcode’s parameters
- How to make this custom capability work? [duplicate]
- Custom plugin issue – Notice: Trying to get property of non-object in
- If I am not writing a theme, how do I add custom fields to a user for a plugin
- Plugin error “array_key_exists(): The first argument should be either a string or an integer” [closed]
- Taxonomy question
- Modifying meta keys in User Meta Pro using user_meta_pre_user_register not working
- How can I call functions from a custom plugin?
- Problem with conditional woocommerce custom checkout field
- How to use get_user_by in plugin
- Add custom field for users
- Changing the body of mail sent to new user registration
- Creating a user ‘add custom field’ section
- How to delete only user meta value (not key) from usermeta table in wordpress?
- How to delete user meta by key
- Pull Data from DB for Admin Page Display as Relates to Admin Page Class by BA Internet
- What method should I use for a sidebar widget that reads latest posts?
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- Insert dynamic content into posts
- force category table refresh when adding new category
- Is there a way to add a custom input field for every taxonomy term in WP post editor?
- get_post_meta does not work
- Woocommerce custom fields
- ACF: Hide a div or template section when a custom field (in a field group) is empty
- How ACF Advanced Custom Field works with Woocommerce Single Product [closed]
- How do I add custom fields to the “Edit page” admin screen?
- Displaying Random Image from ACF Options Page [closed]
- Need help saving input fields for Security Deposit plugin in WC Vendors page
- Adding a variable to a meta field in the backend?
- ACF: Not displaying ACF data from another post
- Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [closed]
- How to change data format in custom meta box field [closed]
- Render CMB2 select option to post page [closed]
- Is there a plugin or another way that can help me find out the underlying files of a page/post? [closed]