Setyenv · Docs
  • English
  • Spanish
  • Chinese
  • Japanese
  • Arabic
  • German
  • French
  • Hindi
  • Indonesian
  • Italian
  • Dutch
  • Portuguese
  • Russian
  • Turkish

Capabilities & roles

Control who can access WP-PFWorkflow features. Eight granular capabilities let you give different teams different levels of access.

Capability list

CapabilityConstantWhat it allows
View workflowspfw_view_workflowsSee the workflow list and open workflows in read-only mode
Manage workflowspfw_manage_workflowsCreate, edit, delete, import, and export workflows
Run workflowspfw_run_workflowsTrigger workflow execution manually or via REST
View logspfw_view_logsRead execution logs, timelines, and support packages
View remote queuepfw_view_remote_queueList remote executor jobs
Create remote jobspfw_create_remote_jobsEnqueue jobs for remote execution
Manage remote workerspfw_manage_remote_workersCreate, delete, rotate, enable/disable workers
Approve workflowspfw_approve_workflowsApprove or reject pending approval gates

Capability inheritance

  • Administrators get ALL capabilities automatically on plugin activation
  • Users with manage_options automatically inherit ALL workflow capabilities
  • The cascade includes: can_approve_workflows() = pfw_approve_workflows || pfw_manage_workflows

Assigning capabilities

Use any WordPress role editor plugin or add capabilities programmatically:

$role = get_role('editor');
$role->add_cap('pfw_view_workflows');
$role->add_cap('pfw_view_logs');

Common role configurations

TeamRecommended capabilities
Automation buildersview_workflows, manage_workflows, run_workflows, view_logs
Support teamview_workflows, view_logs, approve_workflows
DevOps (remote exec)view_remote_queue, create_remote_jobs, manage_remote_workers
Auditorsview_workflows, view_logs, view_remote_queue