• In mulitisite the category management is not possible for editors or subscribers. Error “you do not have sufficient permissions”. Works great for administrators but they do not need this as they have backend access. How to make this working for subscribers and editors?
    This is the part of code in your scripts handling it:

    if ( array_key_exists( 'administrator', $current_user->caps ) ) {
    
    		if ( array_key_exists( '_wpnonce', $_REQUEST ) ) {
    
    			$valid_nonce = wp_verify_nonce( $_REQUEST['_wpnonce'], 'frontend_category_management' );
    
    			if ( $valid_nonce ) {

    https://ww.wp.xz.cn/plugins/front-end-category-management/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dewebmeester.nl

    (@dewebmeesternl)

    Ok, found a partial solution to this by changing statement in:
    if ( is_user_logged_in()
    Result: existing categories cannot be changed, but user can add extra categories. Not bad.

    Plugin Author Manish Kumar Agarwal

    (@manishkrag)

    cool,

    I think we can add some UI for permissioning

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘edit categories for editors’ is closed to new replies.