• Resolved vanduzled

    (@vanduzled)


    This plugin works well if you are searching thru the native wp search like:
    exampe.com/?s=remote

    But not in:
    example.com/wp-json/wp/v2/posts?search=apples

    Is it possible to also track searches used in the rest api?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Cornel Raiu

    (@cornelraiu-1)

    Hello @vanduzled ,

    This is not a feature currently. However, it would a nice addition.

    I will add it only for the posts/pages search for now. Do you think that would be enough for your use case?

    I will prepare and launch an update with this soon – Will try to have it done by the end of the week (Sunday).

    I can probably help you with a piece of custom code you can use until the update is live in case you need it.

    Let me know.

    Thanks!

    Cornel

    Thread Starter vanduzled

    (@vanduzled)

    Hi @cornelraiu-1

    That will be all I need. Actually right now I only need it for posts so that update will be more than enough.

    I’m looking forward for that update. By the way, I really like how fast the plugin tracks my searches. It will really be cool if the REST API searches can also be tracked by your plugin.

    Thanks!

    Plugin Author Cornel Raiu

    (@cornelraiu-1)

    @vanduzled I will make sure it is fast on the REST API searches as well.

    Would be nice to get some feedback from you after the release to make sure it all works as expected.

    Thanks!

    Thread Starter vanduzled

    (@vanduzled)

    @cornelraiu-1 No problem. I will sure write a feedback on the next update.

    Thanks!

    Plugin Author Cornel Raiu

    (@cornelraiu-1)

    Hi @vanduzled ,

    I came across some stuff that need a bit of rework so I decided to cancel this next update and defer everything for V2.0 of the plugin coming around January.

    I will, however, prepare some code for you to add in your functions.php file ( or anywhere else it gets loaded ) that will allow you to track REST API searches.

    I just think it does not make sense to release an update only with this feature now given the fact that it is an isolated request. It will be included in the V2 of the plugin. The V2 will also allow you to tag different searches so you will be able to find all searches that originated from the REST API, different endpoints, different post types, different forms etc.

    I will try to have that code ready for you later today.

    Will that work for you?

    Thanks,
    Cornel

    Thread Starter vanduzled

    (@vanduzled)

    Hey @cornelraiu-1

    That’s fine, a full update makes more sense on the next version. If you could give me a code today I’ll try to test it out and give you some feedback.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to track searches from the rest api?’ is closed to new replies.