0215-filters-graphql-pre-user-cursor-node
title: graphql_pre_user_cursor_node hookType: filter hookGroup: connections plugin: wp-graphql
graphql_pre_user_cursor_node
apply_filters( 'graphql_pre_user_cursor_node', null, $this->cursor_offset, $this );
If pre-hooked, return filtered node.
- Type: filter
- Group: Connections
- Since: 0.0.5
- Source File:
plugins/wp-graphql/src/Data/Cursor/UserCursor.php
Parameters
$pre_user(\WP_User|null): The pre-filtered user node.$offset(int): The cursor offset.$node(\WPGraphQL\Data\Cursor\UserCursor): The cursor instance.
Source
apply_filters( 'graphql_pre_user_cursor_node', null, $this->cursor_offset, $this );
Related
UserCursor::get_cursor_node()inplugins/wp-graphql/src/Data/Cursor/UserCursor.php:86
这篇文档对你有帮助吗?
谢谢你的反馈!