跳转到主要内容

0227-filters-graphql-query-id-hash-algorithm


title: graphql_query_id_hash_algorithm hookType: filter hookGroup: request-lifecycle plugin: wp-graphql

graphql_query_id_hash_algorithm

apply_filters( 'graphql_query_id_hash_algorithm', 'sha256' );

Filter the hash algorithm to allow different algorithms.

  • Type: filter
  • Group: Request Lifecycle
  • Since: 0.0.2
  • Source File: plugins/wp-graphql/src/Utils/Utils.php

Parameters

  • $algorithm (string): Default is sha256. Possible values are those that work with the PHP hash() function. See: https://www.php.net/manual/en/function.hash-algos.php

Source

apply_filters( 'graphql_query_id_hash_algorithm', 'sha256' );