wearerequired / admin-menu-manager

Manage the WordPress admin menu using a simple drag & drop interface.
https://wordpress.org/plugins/admin-menu-manager/
GNU General Public License v2.0
61 stars 6 forks source link

Filter to Turn Off Editing #28

Closed fgilio closed 9 years ago

fgilio commented 9 years ago

A filter so that users have a easy way to Turn Off Editing functionality, thus preventing the enqueuing of scrips, styles and a little markup. All in a couple lines of code in functions.php

Useful when you finished editing the menu and don't want to load all that every time.

swissspidy commented 9 years ago

Interesting idea. And basically already done, but only in the dev version based on another comment before.

Thanks!

fgilio commented 9 years ago

Glad it's useful!

swissspidy commented 9 years ago

There's now an amm_user_can_change_menu filter which can be used to prevent enqueueing the scripts and styles.