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 ability to configure/restrict indexing by post status #59

Merged
merged 2 commits into from
Nov 13, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix typo
  • Loading branch information
renatonascalves committed Nov 10, 2023
commit 83d83e0826d2ee653b4822976d3a6e57b1eb8d68
4 changes: 2 additions & 2 deletions lib/adapters/class-searchpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ public function hook(): void {
public function unhook(): void {
// Unregister filter hooks.
remove_filter( 'sp_pre_search_results', [ $this, 'extract_aggs_from_results' ] );
remove_filter( 'sp_config_sync_post_types', [ $this, 'apply_sync_post_statuses' ] );
remove_filter( 'sp_config_sync_statuses', [ $this, 'apply_sync_post_types' ] );
remove_filter( 'sp_config_sync_post_types', [ $this, 'apply_sync_post_types' ] );
remove_filter( 'sp_config_sync_statuses', [ $this, 'apply_sync_post_statuses' ] );
remove_filter( 'sp_config_mapping', [ $this, 'add_search_suggest_to_mapping' ] );
remove_filter( 'sp_post_pre_index', [ $this, 'add_search_suggest_to_indexed_post_data' ] );
remove_filter( 'sp_search_query_args', [ $this, 'add_aggs_to_es_query' ] );
Expand Down
Loading