Created
January 1, 2015 18:16
-
-
Save cliffordp/fdbc372aaa7b778d7b5b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // From http://www.pagelinestheme.com/dms-editor-only-specified-admins/ | |
| // If not defined all users with edit_theme_options capability have access to the DMS Editor. | |
| // Example 1, only allow username 'admin' to use DMS Editor | |
| define( 'PL_EDITOR_LOCK', 'admin' ); | |
| // Example 2, allow 3 users to use DMS Editor | |
| define( 'PL_EDITOR_LOCK', 'bobadmin,simonadmin,sallyadmin' ); | |
| // Example 3, allow User IDs 7 and 11 and username 'admin' to use DMS Editor | |
| define('PL_EDITOR_LOCK','7,admin,11'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment