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

Support filtering Instant Results args schema. #3389

Merged
merged 4 commits into from
Mar 29, 2023
Merged

Conversation

JakePT
Copy link
Contributor

@JakePT JakePT commented Mar 14, 2023

Description of the Change

Adds ep_instant_results_args_schema filter for filtering Instant Results arguments schema.

Closes #3385

How to test the Change

Adding this code should change the default sorting of results.

add_filter(
	'ep_instant_results_args_schema',
	function( $args_schema ) {
		$args_schema['orderby']['default'] = 'date';

		return $args_schema;
	}
);

Changelog Entry

Added - ep_instant_results_args_schema filter for filtering Instant Results arguments schema.> Changed - Existing functionality.

Credits

Props @JakePT

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@JakePT JakePT requested a review from felipeelia March 14, 2023 10:52
@JakePT JakePT requested review from felipeelia and removed request for felipeelia March 28, 2023 14:56
@JakePT JakePT self-assigned this Mar 28, 2023
@felipeelia felipeelia added this to the 4.5.1 milestone Mar 29, 2023
@felipeelia felipeelia merged commit 7eb1b10 into develop Mar 29, 2023
@felipeelia felipeelia deleted the feature/3385 branch March 29, 2023 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support filtering Instant Results default args
2 participants