Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @felix007,

    I hope you are well today and thank you for your question.

    To allow creating and editing popup you can just add the following code in the functions.php file of your child theme.

    function custom_popover_admin_access_capability(){
    	return 'publish_pages';
    }
    add_filter( 'popover-admin-access-capability', 'custom_popover_admin_access_capability' );

    If you want to also allow it for other user roles then just change the publish_pages capability in the above code to the appropriate capability as described on the following page.

    https://codex.www.ads-software.com/Roles_and_Capabilities

    Cheers,
    WPMU DEV

    Thread Starter felix007

    (@felix007)

    Thank you
    This is Great!

    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    You are most welcome, if we can be of any further assistance please don’t hesitate to ask ??

    Hi,

    Solution with editing functions.php works!
    But additional question is – how can I give to Authors capability to edit existing/add new popup without giving them publish_pages rights?

    On our page Authors just create posts and then those are accepted by Editors. We would like to keep that in the same way with possibility to add popup (existing or new one) to post.
    I’m using also User Role Editor plugin to manage in easier way ??

    thanks!

    ps.
    btw, plugin works great!

    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @bbudzik,

    Thank you for posting on the forum.

    To grant authors Authors capability to edit existing/add new popup without giving them publish_pages capability try adding the following code in the functions.php file of your child theme.

    function custom_popover_admin_access_capability(){
    	return 'publish_posts';
    }
    add_filter( 'popover-admin-access-capability', 'custom_popover_admin_access_capability' );

    Best Regards,
    Vinod Dalvi

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘enable other then admin role to edit’ is closed to new replies.