• Resolved wpfan1000

    (@wpfan1000)


    Hi,

    I do not want other users to be able to disable the plugin on any pages.

    The plugin has the option to disable it from within the post editor screen.

    Is there a way to hide this option from users in the post editor screen?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ozzy Rodriguez

    (@ozzyr)

    Hi @wpfan1000,

    There isn’t a way to do that with the WP Featherlight plugin.

    Well if you happy to try a bit of WordPress code you could hide the button for certain users with the ‘admin_head’ hook in your functions.php file thus…

    add_action( 'admin_head', 'admin_head_style' );
    
    function admin_head_style() {
    if ( !current_user_can('manage_options') ) { //for administrator only
    echo '<style>
    #wp_featherlight_options { display:none; }
    </style>';
      }
    }
    Thread Starter wpfan1000

    (@wpfan1000)

    Hi @hafman,

    Thanks very much for taking the time to respond and the code.

    HI @ozzyr,

    A belated thanks for your response. Please consider making this an option. Many sites have non-admin users where the admin may not want users to be able to disable things.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Do not show option to disable it from within the post editor screen.’ is closed to new replies.