admin管理员组文章数量:1427294
I'm trying to build a custom form using UserFrontend on wordpress and I need to copy an array from one of the known meta keys from WooCommerce. Only thing is I'm not sure how to approach this issue as each field only returns one value. What I really need is to for the user to enter in a date range and translate into part of an array for this meta key value.
I've tried creating custom field groups but they don't show up in UserFrontend
this is the field that can be access in the admin backend:
this is what I need it too look like...
_wc_booking_availability (this is the meta key)
This is the returned value:
array (
0 =>
array (
0 =>
array (
'type' => 'custom',
'bookable' => 'yes',
'priority' => 10,
'from' => '2019-05-13', //this was set using a date picker
'to' => '2019-05-27',
),
),
)
本文标签: pluginsMeta Key array building with multiple input values from fields
版权声明:本文标题:plugins - Meta Key array building with multiple input values from fields 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745495954a2660806.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论