gcgc_connect_assets_capability
Description
Filters the minimum capability required to expose the Google connect flow. This is a floor, not the authorization decision. Calling plugins are responsible for gating the screen itself (e.g. GP Bookings enqueues this only on the bookables screen, which WordPress gates via the post type capabilities). The default allows any user who can reach the admin, so that assigned non-admin users can still connect their own account.
Usage
Applied globally
add_filter( 'gcgc_connect_assets_capability', 'my_custom_function' );Parameters
$capability
string
The capability required. Default ‘read’.
Since
1.0.8Hook added.