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

Search Hooks useless on no result #4788

Open
tzdlr opened this issue Feb 6, 2024 · 1 comment
Open

Search Hooks useless on no result #4788

tzdlr opened this issue Feb 6, 2024 · 1 comment

Comments

@tzdlr
Copy link

tzdlr commented Feb 6, 2024

If the default search mechanism has no corresponding result, the do_search_process hook is completely useless, whereas its the only hook to easily inject new results into the process. In my case its the use of tags, which should be also used for a search. but if i search for a tag which isnt written in any thread, the hook is never called.

Is it possible to get a new hook for those result count like in search.php line 267. Those checks are the KO for every search hook.

@Sama34
Copy link
Contributor

Sama34 commented Feb 11, 2024

Feel free to send a Pull Request for this.

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

2 participants