Last active
July 13, 2016 15:23
-
-
Save Zodiac1978/f8ee3f78ebbdca477c5fa0f4466a7b3b to your computer and use it in GitHub Desktop.
WordPress-Snippet: Redakteuren erlauben, das Dashboard zu bearbeiten, also auch das Statify-Dashboard-Widget.
This file contains 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 | |
function add_theme_caps() { | |
$role = get_role('editor'); | |
$role->add_cap('edit_dashboard'); | |
} | |
add_action('admin_init', 'add_theme_caps'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment