ACF_Admin_UI_Options_Page::add_js_parent_choices
Allow other pages to get available option page parents.
Method of the class: ACF_Admin_UI_Options_Page{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ACF_Admin_UI_Options_Page = new ACF_Admin_UI_Options_Page(); $ACF_Admin_UI_Options_Page->add_js_parent_choices();
Changelog
| Since 6.2 | Introduced. |
ACF_Admin_UI_Options_Page::add_js_parent_choices() ACF Admin UI Options Page::add js parent choices code ACF 6.8.8
public function add_js_parent_choices() {
acf_localize_data(
array(
'optionPageParentOptions' => $this->get_parent_page_choices(),
)
);
}