Ivory Search › Forums › Support › Add actions – Search Analytics compatibility
Tagged: actions, plugin compatibility
- This topic has 6 replies, 2 voices, and was last updated 2 years, 2 months ago by Ivory Search.
You must be logged in to create new topic or reply to the topic. Click To Login
- AuthorPosts
- March 12, 2022 at 3:19 PM #10987
Hello,
I am Cornel Raiu and I am the lead developer of the Search Analytics plugin.
I recently got 2 requests to make my plugin record search results that come from your plugin.After downloading the free Ivory Search plugin, I couldn’t find a way to get the total number of found posts in an AJAX search query for me to be able to hook into the result and save that number as well as the current search string in my plugin’s tables.
What I would need in order to do that is an action similar to the following in all the places where search queries are being made:
is-ajax-results.php:58 - do_action( 'is_ajax_search_results', $posts ); // WP_Query $posts
Then I will be able to add an action and get all the info my plugin needs for storing the details.
Here is a link to my support forum where 2 different users asked for this: https://wordpress.org/support/topic/feature-request-903/
Looking forward to hearing from you!
Cornel Raiu
Master WebTools - March 12, 2022 at 9:13 PM #10988
I hope you are well today and thank you for your feature request.
Sure, I will add a hook for it in the next version of the plugin.
Best regards,
Ivory Search Support - August 15, 2022 at 3:59 PM #12734
Hello,
Any news regarding this?
Thanks,
Cornel Raiu - August 16, 2022 at 5:10 PM #12742
The action is not added yet but you can directly overwrite the plugin file is-ajax-results.php and edit it.
You can just copy and paste the plugin file is-ajax-results.php into your theme’s root folder.
You will find the plugin file is-ajax-results.php on the below path in the Ivory Search plugin directory.
/add-search-to-menu/public/partials/
- August 16, 2022 at 10:31 PM #12744
Hi there,
Thank you for the reply. Unfortunately, completely overwriting the plugin file in my own plugin is not an option because that would mean I have to release a plugin update every time you update the is-ajax-results.php file.
The action is still something some of the users of both our plugins need to get the 2 plugins working nicely together.
I will try to prepare a short tutorial or something for the users to take the path of overwriting the plugin file in their themes themselves.
Looking forward to having the action or something similar added.
Thank you,
Cornel Raiu
Master WebTools - August 17, 2022 at 5:40 PM #12767
I will add it in the upcoming plugin release.
- August 25, 2022 at 3:54 PM #12894
I have added the hook in the latest released plugin version 5.4.8.
- AuthorPosts
You must be logged in to create new topic or reply to the topic. Click To Login