Skip Navigation

[Resolved] Toolset Access Moving Sub-Menu Item

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 3.25 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 7 replies, has 2 voices.

Last updated by Nigel 11 months, 1 week ago.

Assisted by: Nigel.

Author
Posts
#2663623
Screenshot 2023-11-11 at 12.56.50 PM.png

I have installed and activated Toolset Access. The only thing I have done is create a custom role. I have not changed any role access rules. The site also has LearnDash installed. When Access is enabled, the sub-menu item of 'Groups' gets moved out of the LearnDash menu and is placed on the main menu. If I deactivate Access, it goes back where it belongs...under the LearnDash menu.

#2664177

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I can see the issue on your site, and I reproduced it on my own site when adding LearnDash and the LearnDash Group Registration plugin.

No need to create a custom role, I simply had to activate Access.

I'll likely escalate this to our compatibility team, but first I'll see if I can identify where exactly it goes wrong to see if I can propose a workaround.

Please bear with me while I look into that.

#2664677

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I identified where in the code base this goes wrong, but I can't see any easy workaround to apply.

I've had to ask the developers to take a closer look, so I'm escalating this thread, and I'll get back to you when I have some feedback to share.

#2673547

Any update?

#2674685

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

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.

I've provided details in this erratum: https://toolset.com/errata/learndash-lms-groups-menu-item-in-wrong-position-if-access-active/

If you apply that workaround you should find the problem resolved.

#2675261

Can I do this in an MU Plugin?

#2675391

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Actually, although the workaround fixes the issue, our developers identified a simple change they can make in Access that will bypass this problem altogether, in which case you won't need the workaround.

Please bear with us, we should have an update to Access before the end of the week (a release was due in any case).

#2675777

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

The release will likely occur next week, but if you don't want to wait you can download the update from this link and update your site manually: https://toolset.com/patches/types-access.2.9.0.zip

If you experience any problems please create a new thread (I'll be off next week, if you create a new thread someone else will be able to help you).