graphql_return_field_from_model
Filter the data returned by the default callback for the field
apply_filters( 'graphql_return_field_from_model', string $field, string $key, string $model_name, mixed $data, string $visibility, int $owner, WP_User $current_user );
Params
- $field (string): The data returned from the callback
- $key (string): The name of the field on the type
- $model_name (string): Name of the model the filter is currently being executed in
- $data (mixed): The un-modeled incoming data
- $visibility (string): The visibility setting for this piece of data
- $owner (null|int): The user ID for the owner of this piece of data
- $current_user (WP_User): The current user for the session