On a local development site I’m working on for some reason all of my option page links in the admin menu except the last one don’t work.
Format of the main page and all subpages but the last one: https://site.test/wp-admin/acf-options-page-slug
Format of the last subpage: https://site.test/wp-admin/admin.php?page=acf-options-page-slug-that-works
Does anyone have any ideas about what’s causing this? It doesn’t seem to be affecting other sites.
Just a note on this if anyone else is looking for this. I think I’ve figured this out. I was using the acf/init hook to call the functions creating the options pages. They were spread across multiple files and classes. I noticed that the main page was getting called after some of the subpages. When I added a priority of 1 to the main page hook and it appears to be working.
add_action('acf/init', [$this, 'baaSettingsPage'], 1);