Home › Forums › Add-ons › Options Page › Options Page Disappeared › Reply To: Options Page Disappeared
I’ve had the same problem after the last update of the plugin. So I did a lot of different tests and it seems there is a issue with the add_action WordPress function.
The thing that causes the admin menu not to show is this line (acf-options-page.php line 44):
add_action('init', array($this,'init'), 1);
It seems the whole thing breaks as this init add_action has a priority set as 1, while another init add_action in the acf.php file (line 81) is also set as 1 in priority. So if one simply change the priority of the init add_action function in the acf-options-page.php file to 2, it all works.
Hope it works.
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!
CPT registration is coming to ACF! We demoed the new feature during the most recent session of ACF Chat Fridays. Check out the summary for the details. https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 7, 2023
© 2023 Advanced Custom Fields.