0266-filters-graphql-user-can-see-query-logs
title: graphql_user_can_see_query_logs hookType: filter hookGroup: debugging plugin: wp-graphql
graphql_user_can_see_query_logs
apply_filters( 'graphql_user_can_see_query_logs', $can_see );
Filter whether the logs can be seen in the request results or not
- Type: filter
- Group: Debugging and Instrumentation
- Since: 0.2.0
- Source File:
plugins/wp-graphql/src/Utils/QueryLog.php
Parameters
$can_see(bool): Whether the requester can see the logs or not
Source
apply_filters( 'graphql_user_can_see_query_logs', $can_see );
Related
QueryLog::user_can_see_logs()inplugins/wp-graphql/src/Utils/QueryLog.php:93
这篇文档对你有帮助吗?
谢谢你的反馈!