Support » Plugin: Confirm Publishing Actions » Show confirmation for Contributors only?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Peter J. Herrel

    (@donutz)

    @brownsmart drop the following in the functions.php file of your theme, or a custom plugin:

    add_action( 'admin_enqueue_scripts', 'cpa_dequeue_for_all_but_contrib', 25 );
    function cpa_dequeue_for_all_but_contrib()
    {
        if( in_array( 'contributor', $GLOBALS['current_user']->roles ) )
            return;
    
        wp_dequeue_script( 'cpa' );
    }
    brownsmart

    (@brownsmart)

    I will give this a try, THANKS!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show confirmation for Contributors only?’ is closed to new replies.