Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Wordpress popups plugin. Allow editors to edit popups
<?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';
}
@adammohammad

This comment has been minimized.

Copy link

adammohammad commented Jul 21, 2016

Hi!
May you also provide a code how to allow authors to edit/add popups? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.