Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with offset pagination and polylangs language filter parameter. #794

Closed
PeteKoda opened this issue Sep 4, 2023 · 1 comment · Fixed by #797
Closed

Problem with offset pagination and polylangs language filter parameter. #794

PeteKoda opened this issue Sep 4, 2023 · 1 comment · Fixed by #797
Labels
bugfix Implements bugfix
Milestone

Comments

@PeteKoda
Copy link

PeteKoda commented Sep 4, 2023

Fix :

/**
* Filter the input fields
* This allows plugins/themes to hook in and alter what $args should be allowed to be passed
* from a GraphQL Query to the WP_Query
*
* @param array $query_args The mapped query arguments
* @param array $args Query "where" args
* @param mixed $source The query results for a query calling this
* @param array $all_args All of the arguments for the query (not just the "where" args)
* @param \WPGraphQL\AppContext $context The AppContext object
* @param \GraphQL\Type\Definition\ResolveInfo $info The ResolveInfo object
* @param mixed|string|array $post_type The post type for the query
*
* @return array
* @SInCE 0.0.5
*/
$query_args = apply_filters( 'graphql_map_input_fields_to_wp_query', $query_args, $where_args, $this->source, $this->args, $this->context, $this->info, $this->post_type );

@kidunot89 kidunot89 added the bugfix Implements bugfix label Sep 4, 2023
@kidunot89 kidunot89 added this to the v0.16.1 milestone Sep 4, 2023
@PeteKoda
Copy link
Author

PeteKoda commented Sep 4, 2023

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Implements bugfix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants