graphql_after_return_field_from_model

do_action( 'graphql_after_return_field_from_model', $result, $key, $this->get_model_name(), $this->data, $this->visibility, $this->owner, $this->current_user );

Hook that fires after the data is returned for the field

  • Type: action
  • Group: Model Layer
  • Since: 0.3.0
  • Source File: plugins/wp-graphql/src/Model/Model.php

Parameters

  • $result (mixed): 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 (TData): The un-modeled incoming data
  • $visibility (string): The visibility setting for this piece of data
  • $owner (int|null): The user ID for the owner of this piece of data
  • $current_user (\WP_User): The current user for the session

Source

do_action( 'graphql_after_return_field_from_model', $result, $key, $this->get_model_name(), $this->data, $this->visibility, $this->owner, $this->current_user );