Homepage
Link to WPGraphQL on Github
Link to WPGraphQL on WordPress.org

graphql_after_return_field_from_model

Hook that fires after the data is returned for the field

Params

  • $results (string): The returned data for the field
  • $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

Source

File: wp-graphql/src/Model/Model.php