• Please allow editors to edit widgets. Surely it is the role of an editor to do this.

    /**
    	 * Add Capability to edit widget block
    	 */
    	public function add_caps() {
    		$caps_version = '1.2';
    
    		// did we add the caps already?
    		$db_version = get_option( 'wywi_caps_version', 0 );
    		if( version_compare( $db_version, $caps_version, '>=' ) ) {
    			return;
    		}
    
    		$role = get_role( 'administrator' );
    		$role->add_cap( 'edit_widget_block' );
    
    		$role = get_role( 'editor' );
    		$role->add_cap( 'edit_widget_block' );
    		//update_option('wywi_caps_version', $caps_version);
    	}

    https://wordpress.org/plugins/wysiwyg-widgets/

  • The topic ‘Editor Role: Capabilities’ is closed to new replies.