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

Autocomplete page item cleanup #435

Open
tw2113 opened this issue Oct 29, 2024 · 0 comments
Open

Autocomplete page item cleanup #435

tw2113 opened this issue Oct 29, 2024 · 0 comments

Comments

@tw2113
Copy link
Member

tw2113 commented Oct 29, 2024

  1. With get_excluded_post_types() method in class-algolia-settings.php, let's fetch all builtin post types, unset post, page, and attachment and then merge them into the $excluded array. This will prevent having to monitor built in post types going forward.

  2. Needs discussion (WooCommerce): remove shop_order and shop_order_refund from autocomplete list. I doubt people want to be able to index orders and refunds on the frontend. Also product_visibility and product_shipping_class from term listing. Those can be modified in get_excluded_taxonomies(). These may be best off via using the available filter and only added if WooCommerce is enabled.

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

No branches or pull requests

1 participant