graphql_return_modeled_data
[!WARNING] This hook has been deprecated since v1.7.0 and should not be used for new integrations. Use
graphql_model_prepare_fieldsinstead.
apply_filters_deprecated( 'graphql_return_modeled_data', [ $fields, $model_name, $visibility, $owner, $current_user ], '1.7.0', 'graphql_model_prepare_fields', __( 'This will be removed in the next major release of WPGraphQL.', 'wp-graphql' ) );
No description available.
- Type: filter
- Group: Uncategorized
- Since: Unknown
- Source File:
plugins/wp-graphql/src/Deprecated.php
Lifecycle
- Deprecated in: 1.7.0
- Replacement:
graphql_model_prepare_fields
Parameters
$fields(array<string,mixed>): The array of fields for the model$model_name(string): Name of the model the filter is currently being executed in$visibility(string): The visibility setting for this piece of data$owner(?int): The user ID for the owner of this piece of data$current_user(\WP_User): The current user for the session
Source
apply_filters_deprecated(
'graphql_return_modeled_data',
[ $fields, $model_name, $visibility, $owner, $current_user ],
'1.7.0',
'graphql_model_prepare_fields',
__( 'This will be removed in the next major release of WPGraphQL.', 'wp-graphql' )
);
Related
Deprecated::filters()inplugins/wp-graphql/src/Deprecated.php:91