Since the new version 2.8.17 of Toolset Access there is a conflict with the famous LearnDash Plugin. The LearnDash groups are no longer visible in the LearnDash dashboard menu. On our live sites we've moved back to version 2.8.16, which makes it work again. So there must be some changes in version 2.8.17 which are causing this issue. Kind regards, Christian.
I took another look at this myself to see if I could identify a workaround, and realise the problem relates to how LearnDash registers the Groups custom post type, and it is relatively straightforward to filter the argument in question to correct that.
Hi Nigel, thank you so much for this workaround. It works perfectly. Should we share this plural issue with the LearnDash people? Or do you implement the workaround in the next toolset access version?
There's nothing for us to fix, the problem arises because of how the post type is registered.
Now, to be fair to LearnDash, it makes no difference to LearnDash when considered in isolation, but it can have ramifications in the context of LearnDash in the wider WordPress eco-system where interoperability with other code is important.
You are welcome to share this with LearnDash, it would imply a trivial change on their part that would not affect their own code beyond the small change to the capability_type parameter.
The function register_post_type expects this to be a singular string (e.g. "group") or an array specifying both singular and plural forms (e.g. [ "group", "groups" ] ), but currently it is registered as a plural string ("groups").
The workaround I shared simply hooks into the post type registration and modifies the provided parameter value.
Actually Christian, the developers were working an update for something else with Access, and realised they can easily bypass this problem altogether, so the workaround won't be required.
The update for Access should be available before the end of the week, I'll let you know.