跳转到主要内容

0218-filters-graphql-pre-wp-query-cursor-pagination-support


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

graphql_pre_wp_query_cursor_pagination_support

apply_filters( 'graphql_pre_wp_query_cursor_pagination_support', null, $where, $query );

If pre-filter hooked, return $pre_where.

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

Parameters

  • $pre_where (string|null): The pre-filtered WHERE clause of the query.
  • $where (string): The WHERE clause of the query.
  • $query (\WP_Query): The WP_Query instance (passed by reference).

Source

apply_filters( 'graphql_pre_wp_query_cursor_pagination_support', null, $where, $query );