How to Reorder Admin Toolbar Sub-Menu Links in Alphabetical Order

Good Day,

How can I reorder Gravity Forms’ Admin Toolbar sub-menu links in alphabetical order? A PHP/JS code snippet would be great.

Thank you!

Jonathan

Hi Jonathan. To have some control over that list of forms in the admin toolbar, take a look at this plugin from Gravity Wiz:

It allows you to select which forms should appear in the top menu, and optionally in the dashboard widget.

I think if you look at that plugin, you could copy the method it uses to include/exclude forms, and instead return all forms by form title alphabetically.

Hi Chris,

Thank you for the hint. That’s hard work! :slight_smile:

Any chance you can elevate this topic to your chief developer for a second look and a lean, mean code snippet?

As an example, Rank Math developed one for their plugin and it works great.

Again, thank you.

Jonathan