graphql_post_object_cursor_meta_key

apply_filters( 'graphql_post_object_cursor_meta_key', $key, $meta_key, $meta_type, $order, $this );

Allow filtering the meta key used for cursor based pagination

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

Parameters

  • $key (string): The meta key to use for cursor based pagination
  • $meta_key (string): The original meta key
  • $meta_type (string): The meta type
  • $order (string): The order direction
  • $cursor (object): The PostObjectCursor instance

Source

apply_filters( 'graphql_post_object_cursor_meta_key', $key, $meta_key, $meta_type, $order, $this );