Get a Field Group’s locations programmatically
[ad_1]
Hello,
I’m working on an integration with meta box that will let users pick Meta Box field groups and fields from a selector. After selecting a field, it’s contents would displayed on the page.
I’m stuck on displaying fields that are attached to a settings page though. To display a field from a settings page you need the “option name” for the field group it’s in.
I don’t know what meta boxes might be on any given site. So I’ve been getting the field groups with the rwmb_get_registry( 'meta_box' )->all()
function. This gets me all the field groups and their settings. But there doesn’t appear to be a way to get what locations or, in my case, settings pages that the field group is on.
without getting the settings page that a field is on, I can’t get the option name and I can’t display it.
Do you have any suggestions for how I could get these option names programmatically? Any help or guidance would be greatly appreciated.
Thank you,
Mark
[ad_2]
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس