Filter
rpress_pause_orders_capability
On this page
Filters the capability required to pause orders.
Runs in RPRESS_Pause_Orders::capability(). The default is 'edit_shop_payments', the same as the Live Orders screen. Return another capability to allow or restrict who can pause orders and set busy mode.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$value | string | Default capability. |
Return value#
string. Capability name.
Example#
function my_pause_capability( $cap ) {
return 'manage_shop_settings';
}
add_filter( 'rpress_pause_orders_capability', 'my_pause_capability' );
Source#
Applied in:
includes/features/pause-orders/loader.php(line 763), inRPRESS_Pause_Orders::capability()
See also#
Was this page helpful?
