• Resolved Ivaseg

    (@ivaseg)


    How I can manage access to your plugin for different user roles? For example, Yoast SEO has two roles and we can configure access. Now I have users with editor role that can’t use shortcodes ultimate.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vova

    (@gn_themes)

    Hi @ivaseg,

    add the following snippet to the end of the functions.php file:

    /**
     * Required capability to access the 'Insert Shortcode' button.
     * User roles and custom capabilities are allowed.
     */
    $su_generator_capability = 'edit_posts';
    
    update_option( 'su_option_generator_access', $su_generator_capability, false );

    You can remove the snippet after opening any page of your site.

    Thread Starter Ivaseg

    (@ivaseg)

    ty, it’s work

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Managing access to this plugin’ is closed to new replies.