Hide Attributes By User Roles

Description

This filter allows you hide the Assigned Actors / Users columns from history and report page.

Usage

add_filter('owf_hide_attributes_by_role',  'hide_by_roles' , 10, 1 );

Parameters

  • $roles – array of user roles

Example


add_filter('owf_hide_attributes_by_role',  'hide_by_roles' , 10, 1 );
function hide_by_roles ( $roles ) {
      array_push( $roles, "editor", "subscriber" );
      return $ roles;
}

Source Code

The filter is located in
oasis-workflow-pro/includes/pages/workflow-history.php
oasis-workflow-pro/includes/class-ow-history-service.php
oasis-workflow-pro/includes/class-ow-report-service.php

Didn't find what you are looking for? Submit a Query

Add/Remove Inbox ColumnUnset Postmeta