graphql_dataloader_get_model

apply_filters( 'graphql_dataloader_get_model', $model, $entry, $key, $this );

Filter the model before returning.

  • Type: filter
  • Group: Model Layer
  • Since: 0.0.5
  • Source File: plugins/wp-graphql/src/Data/Loader/AbstractDataLoader.php

Parameters

  • $model (mixed): The Model to be returned by the loader
  • $entry (mixed): The entry loaded by dataloader that was used to create the Model
  • $key (mixed): The Key that was used to load the entry
  • $loader (\WPGraphQL\Data\Loader\AbstractDataLoader): The AbstractDataLoader Instance

Source

apply_filters( 'graphql_dataloader_get_model', $model, $entry, $key, $this );