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

Add ep_facet_special_slug_taxonomies filter #3506

Merged
merged 18 commits into from
Jul 28, 2023

Conversation

oscarssanchez
Copy link
Contributor

@oscarssanchez oscarssanchez commented Jun 21, 2023

Description of the Change

This PR introduces a new filter to account for the edge case from https://github.com/10up/ElasticPress/pull/3506/files#diff-64cabb18869a398887abf9cc35592a9636381971dedfc6e1ee1b3ada27188edfL175 and moves the code to the Woocommerce feature.

If we ever need to do something like this again, we can reuse this filter.

Closes #3467

How to test the Change

Changelog Entry

Added - ep_facet_tax_special_slug_taxonomies filter

Credits

Props @oscarssanchez

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.

@oscarssanchez oscarssanchez changed the title WIP: Add ep_facet_special_slug_taxonomies filter Add ep_facet_special_slug_taxonomies filter Jul 24, 2023
Copy link
Member

@felipeelia felipeelia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oscarssanchez do you mind putting together a small test covering the new add_taxonomy_attributes method, please?

includes/classes/Feature/WooCommerce/WooCommerce.php Outdated Show resolved Hide resolved
includes/classes/Feature/WooCommerce/WooCommerce.php Outdated Show resolved Hide resolved
tests/php/features/TestFacetTypeTaxonomy.php Show resolved Hide resolved
@felipeelia felipeelia merged commit 42713ed into develop Jul 28, 2023
@felipeelia felipeelia deleted the feature/special-slug-facet-tax-filter branch July 28, 2023 17:40
@felipeelia felipeelia added this to the 4.7.0 milestone Jul 28, 2023
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.

Enhancement: Move Woocommerce logic from facet by taxonomy to the Woocommerce feature
2 participants