Skip to content

boolean_smtp_rest_capability

Filters the capability required to use the BooleanSMTP REST API.

filter Tier A Since 1.0.0

Applies to every route except the public provider webhook. Defaults to `manage_options`; return a finer capability to delegate the admin UI to another role.

Signature

add_filter( 'boolean_smtp_rest_capability', $callback, 10, 1 );

Parameters

ParameterTypeDescription
$capabilitystringThe WordPress capability. Default `manage_options`.

Returns string — The filtered capability.

Fires in

Example

boolean_smtp_rest_capability.php
add_filter( 'boolean_smtp_rest_capability', function ( string $capability ) {
return $capability;
}, 10, 1 );

Next steps