Why does hook priority affects admin menu permission error?
Priority All hooks & filters have a priority. Those are used to order the functions that are attached to hooks. By default the priority is 10. As the default is 10, there’s a big chance that your filter/action gets hooked too early and therefore can’t affect the actual output. Edit: Imagine that the plugin hooks … Read more