Get a Field Group’s locations programmatically
-
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
- The topic ‘Get a Field Group’s locations programmatically’ is closed to new replies.