graphql_restricted_data_cap
Filter for the capability to check against for restricted data
apply_filters( 'graphql_restricted_data_cap', string $restricted_cap, string $model_name, mixed $data, string $visibility, int $owner, WP_User $current_user );
Params
- $restricted_cap (string): The capability to check against
- $model_name (string): Name of the model the filter is currently being executed in
- $data (mixed): The un-modeled incoming data
- $visibility (string|null): The visibility that has currently been set for the data at this point
- $owner (null|int): The user ID for the owner of this piece of data
- $current_user (WP_User): The current user for the session