diff --git a/src/filter-exception.php b/src/filter-exception.php index 643dc6d..ed1a63c 100644 --- a/src/filter-exception.php +++ b/src/filter-exception.php @@ -18,16 +18,7 @@ class FilterException extends \Exception implements ClientAware { * * @return bool isSafe from ClientAware. */ - public function isClientSafe() { + public function isClientSafe(): bool { return true; } - - /** - * Relay ClientAware fn. - * - * @return string category from ClientAware. - */ - public function getCategory() { - return 'wp-graphql-filter-query plugin'; - } } diff --git a/src/filter-query.php b/src/filter-query.php index 2ba86e4..8e11e9e 100644 --- a/src/filter-query.php +++ b/src/filter-query.php @@ -37,7 +37,7 @@ class FilterQuery { public function add_hooks(): void { add_action( 'graphql_register_types', [ $this, 'extend_wp_graphql_fields' ] ); - add_filter( 'graphql_RootQuery_fields', [ $this, 'apply_filters_input' ], 20 ); + add_filter( 'graphql_RootQuery_fields', [ $this, 'apply_filters_input' ], 30 ); add_filter( 'graphql_connection_query_args', [ $this, 'apply_recursive_filter_resolver' ], 10, 2 ); }