Support » Plugin: WP-PostViews » Hook into PostView increment function to send email

  • Resolved srumery

    (@srumery)


    Hello Lester,

    Out of the box, this plugin works great. Thank you.

    I have a specific case where I need to send an email when a page is viewed. I am using WP Super Cache with Nginx to serve up static files so I can’t write a PHP function that works on the page, I need to use Ajax. Hooking into your plugin seems like a great solution.

    What would be the best way to do that? Can I hook into the wp_ajax_postviews action in a custom plugin and use another function to execute an email?

    https://wordpress.org/plugins/wp-postviews/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hook into PostView increment function to send email’ is closed to new replies.