I’m still new to this and I faced the same problem. This is the code I add in function.php
acf_add_options_sub_page(array( 'page_title' => 'Product Settings', 'menu_title' => 'Product Settings', 'menu_slug' => 'product-settings', 'parent_slug' => 'edit.php?post_type=product', 'capability' => 'manage_options', 'position' => false, 'icon_url' => false, ));
I follow the tutorial from here: https://www.bobz.co/dynamically-populate-select-fields-choice-in-advanced-custom-fields/
When I change to this
add_action( 'admin_menu', array( $this, 'adminMenuPages' ), 101) my page went blank.
Appreciate any advise. Thanks.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.