cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
280 stars 82 forks source link

INCREMENT PAGE VIEW COUNT REST API #263

Closed maykon-oliveira closed 4 years ago

maykon-oliveira commented 4 years ago

I was looking for a way to increment page view count through REST-API-Endpoints, but there is nothing talking about that feature or how could I do. However I found a function in RestController source code that do that, so I am opening a issue to you improve the wiki, and describe it how a client can increment page view count throught API.

$ POST htts://localhost:8080/wp-json/wordpress-popular-posts/v1/popular-posts?wpp_id=623

cabrerahector commented 4 years ago

Hi Maykon,

There is at least one issue here that does talk about it: Increment View Count on Quick View Modal or Button Click. That issue links to the Support forum where there's a pinned topic that explains how to do it as well: WPP with an AJAX-based website.

Try using different search terms next time :P