Add actions – Search Analytics compatibility

Ivory Search Forums Support Add actions – Search Analytics compatibility

Viewing 6 reply threads

You must be logged in to create new topic or reply to the topic.

  • Author
    Posts
    • #10987
      Cornel Raiu
      Participant
      • Topics: 1
      • Replies: 2

      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

    • #10988
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,633

      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

    • #12734
      Cornel Raiu
      Participant
      • Topics: 1
      • Replies: 2

      Hello,

      Any news regarding this?

      Thanks,
      Cornel Raiu

    • #12742
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,633

      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/

    • #12744
      Cornel Raiu
      Participant
      • Topics: 1
      • Replies: 2

      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

    • #12767
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,633

      I will add it in the upcoming plugin release.

    • #12894
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,633

      I have added the hook in the latest released plugin version 5.4.8.

Viewing 6 reply threads

You must be logged in to create new topic or reply to the topic.