跳转到主要内容

0216-filters-graphql-pre-wp-comments-query-cursor-pagination-support


title: graphql_pre_wp_comments_query_cursor_pagination_support hookType: filter hookGroup: connections plugin: wp-graphql

graphql_pre_wp_comments_query_cursor_pagination_support

apply_filters( 'graphql_pre_wp_comments_query_cursor_pagination_support', null, $pieces, $query );

If pre-filter hooked, return $pre_pieces.

  • Type: filter
  • Group: Connections
  • Since: 0.0.5
  • Source File: plugins/wp-graphql/src/Data/Config.php

Parameters

  • $pre_pieces (?array<string,mixed>): The pre-filtered comment query clauses.
  • $pieces (array<string,mixed>): A compacted array of comment query clauses.
  • $query (\WP_Comment_Query): Current instance of WP_Comment_Query, passed by reference.

Source

apply_filters( 'graphql_pre_wp_comments_query_cursor_pagination_support', null, $pieces, $query );