mirror of
https://github.com/wp-graphql/wp-graphql-woocommerce.git
synced 2026-08-14 12:53:44 +02:00
* feat: Authorizing URLs implemented and tested. * feat: More woographql_*_nonce functions implemented. * chore: linting changes made. * chore: linting changes made. * fix: woographql_*_ functions tested. * chore: WPCS compliance met. * devops: lint-code script updated to PHP v8.0 * chore: WPCS compliance met * devops: TransferSessionHandlerTest & QLSessionHandlerTest updated * devops: codeclimate.yml added. * chore: Linter compliance met * devops: Harmonizing WordPress doc written and Settings doc updated. * chore: Typo fixed in docs. * fix: General bugfixes and improvements related to Auth URLs * devops: More docs. * chore: Linter compliance met * chore: small change made to docs.
15 lines
296 B
PHP
15 lines
296 B
PHP
<?php
|
|
/**
|
|
* Remove the "extensions" payload from GraphQL results
|
|
* so that tests can make assertions without worrying about what's in the extensions payload
|
|
*/
|
|
add_filter(
|
|
'graphql_request_results',
|
|
function( $response ) {
|
|
unset( $response['extensions'] );
|
|
|
|
return $response;
|
|
},
|
|
99
|
|
);
|