Skip to content

Instantly share code, notes, and snippets.

@timersys
Last active May 18, 2019 15:15
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save timersys/03067ac7594fdce288ca to your computer and use it in GitHub Desktop.
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
Copy link

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