Your options
should have a key => value structure if you want it to return something other than the key number:
'options' => array(
'option_a' => __('option a', 'woocommerce' ),
'option_b' => __('option b', 'woocommerce' )
)
);
Related Posts:
- Extract array from custom field
- Can I query custom meta data through WP_Query
- How to access custom order item meta data from a meta key in WooCommerce?
- When using add_post_meta and update_post_meta, is there any way to give the individual arrays keys?
- WP doesn’t show Array Custom Fields?
- Save Custom Fields for Variations Product
- How do I search an array stored in a custom-field using WP_Query?
- Is it possible to store arrays in a custom field?
- Adding existing user custom field value to a woocommerce product [closed]
- use get_posts to get custom field data, but in one array
- Saving an array in a single custom field
- Adding Custom Text Area to WooCommerce Product
- WooCommerce conditional required checkout fields [closed]
- Include woocommerce custom field value in front-end search result
- Outputting an array of term meta values in a custom WooCommerce tab?
- woocommerce product custom field
- How to get customfield value by woocommerce product ID
- Get specific custom field keys from a post and put into an array
- WP Query Returning All Posts
- Passing Custom Field Data as Array to be Saved (Resulting Custom Field Array is inconsistent)
- Conditionally hide or show woocommerce product variation in fontend by custom field
- Woocommerce: Custom fields and email shortcodes, ec_custom_field
- Bulk remove post meta
- How to create html block to display extra information on woocommerce single product page
- Display WP-Types custom fields in post [closed]
- Run a check for multiple meta key values
- Create an Array of Specific Custom Post Meta
- Remove Body Classes
- Modifying custom order item meta from admin order view
- How to create a dropdown select of all items in an ACF field group
- How do I add an image upload, custom field to a WooCommerce product?
- WooCommerce – Adding Custom Fields To Invoice
- Woocommerce Product Custom Select List (not variation)
- jQuery – Automatic event trigger does not **really** check my form
- Sort alphabetically by custom field
- How to add new field to the account address?
- Redirect to another page using contact form 7? [closed]
- How to display custom field in woocommerce email orders? [closed]
- Woocommerce Retrieving custom field value from orders
- change order of images attached to post
- Update custom field values on edit address page woocommerce
- Woocommerce frontend edit custom fields
- query_posts with meta_value
- Displaying an ACF list of users
- Meta value Array
- Custom field to array?
- Show array of meta_value in Edit Post Coloum
- How to Convert Custom Fields from Text to Array?
- Custom field outside the loop and inside an array
- Get custom post fields from multiple metaboxes
- Working with multiple values and metaboxes
- Custom Field: how to save array of multiple key-values in WordPress
- Is it possible to add Term Meta Fields to a WooCommerce Attribute?
- Why does my numeric meta query work only on one meta key and not the other?
- Update custom field on the fly
- (woocommerce) How to get product id form order id & then retrieve custom meta linked to product?
- How to delete WooCommerce Products than have a specific custom field?
- WooCommerce 3 get custom variation on process order [closed]
- Use a different catalog image than the featured image
- Should I store arrays in custom fields or create custom tables?
- Check if value exists before saving
- How do I use foreach to get content from a custom-field in multiple posts?
- Adding custom field to an array
- How do i output images from URL’s added to the same custom field key
- Add Custom field under the post title [closed]
- woocommerce how in checkout to add my custom field check box, and when i check it hide the shipping adress and add tax 19% [closed]
- price calculation from custom field (woocommerce) [closed]
- Hiding custom fields when content is empty [closed]
- Cannot save values to custom fields for variations on Woocommerce 2.4.6
- Send checkout page custom field in order email
- Build Array from Input Fields question
- Assign class to Drop Down Selections in WooCommerce Products Custom Fields
- Custom fields: Split data from single custom field’s sub-array to separate custom fields when saving post
- Grabbing value of input field inside of array
- Meta Query with AND & OR?
- How to save custom fields for attachments
- Exclude custom post type from search by custom field value?
- add meta box using function.php
- Add Paypal Button programmatically
- How do I use wp_query for WordPress search?
- Nav Menu – Add class based on meta keys
- Accessing loop functions (e.g the_title or the_content) from post ID
- Excluding Specific Fields from Profile Builder Registration Form
- Set post to unpublished after one week depending on condition
- Efficiently sort only certain categories by custom field
- How can I do a variable for meta_query?
- How to list Category list in ACF Pro’s Select Field to choose from [closed]
- Display custom field & value correctly on page
- Displaying custom filed content instead of post content
- Set featured image from custom field URL
- Filter posts by custom field (Advanced Custom Fields)
- WP E-Commerce Custom Meta > Serialized array
- Save Taxonomy of Post via custom Taxonomy Select Dropdown
- use custom field value as featured image
- Why WordPress takes time to make request to save post?
- Need help getting a certain value out of a multi dimensional array
- Show comon custom field results?
- Display Child Page with custom fields within Parent Page
- Show div based on custom meta value
- Show/Hide Featured Image or replace it with custom field [closed]