Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author dFactory

    (@dfactory)

    Hi,
    The plugin does not rely on meta keys but creates post_views database table.
    This approach allows it to perform well on large traffic websites.

    Thread Starter nicholasag

    (@nicholasagardy)

    Thank you.
    I was just wondering. Do you guys offer a way to “hook” into the view count update event using PHP, and a code sample that shows how it can be done.

    Looking forward to your answer.

    Plugin Author dFactory

    (@dfactory)

    Sure we do.

    For example using pvc_after_count_visit action hook being fired after the view has been counted (increased).

    That’s how it looks in the code:
    do_action( 'pvc_after_count_visit', $id );
    where $id is the post ID

    To call it just make use of the WP native add_action function and pvc_after_count_visit hook.

    Thread Starter nicholasag

    (@nicholasagardy)

    Awesome. Thank you 😉

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Meta keys created in the database’ is closed to new replies.