Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ays-pro

    (@ays-pro)

    Hi Dear @fabbaf ,

    Thank you for contacting us.

    Unfortunately, the plugin does not provide that kind of functionality yet.

    Thanks for your understanding.

    Thread Starter fabbaf

    (@fabbaf)

    Thanks for your reply.

    I don’t mind adding a function to my theme or editing your plugin file. So maybe I could use something like “manage_options”?

    Or is that not included in your plugin code?

    Cheers

    Fabian

    Plugin Author ays-pro

    (@ays-pro)

    Thank you for your reply, Dear @fabbaf .

    Please go to the following folder: plugins\ays-popup-box\admin\class-ays-pb-admin.php and find the following function: add_plugin_popups_submenu().

    There you can modify manage_options.
    The following article can be of help: https://wp-kama.ru/function/current_user_can

    Thanks.

    Thread Starter fabbaf

    (@fabbaf)

    Thanks for the advice. Had to change it for the following function as well:
    ‘add_plugin_admin_menu()’.

    I don’t understand russkiy, but got it working by changing ‘manage_options’ to ‘edit_posts’.

    Thanks again. I will mark this as resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to allow non-admin-user to edit pop-ups’ is closed to new replies.