Last active
May 18, 2019 15:15
-
-
Save timersys/03067ac7594fdce288ca to your computer and use it in GitHub Desktop.
Wordpress popups plugin. Allow editors to edit popups
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 // <-- don't add this in your functions.php if already there | |
/** | |
* https://wordpress.org/support/plugin/popups | |
* Allow editors to edit popups | |
* For more roles check https://codex.wordpress.org/Roles_and_Capabilities | |
*/ | |
add_filter('spu/settings_page/roles', 'my_custom_role'); | |
function my_custom_role(){ | |
return 'edit_others_posts'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
May you also provide a code how to allow authors to edit/add popups? Thanks.