CybMeta / cyb-hits

Hits counter for WordPress posts. It uses Ajax, so it is compatible with static page cache. Option to use WP_SHORTINIT method in a direct Ajax request.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cyb-hits

Hits counter for WordPress posts. It uses Ajax, so it is compatible with static page cache. Option to use WP_SHORTINIT method in a direct Ajax request.

The hits counter is stored as hits meta field. You can get the number of hits with:

$post_hits = get_post_meta( $post_id, 'hits', true );

About

Hits counter for WordPress posts. It uses Ajax, so it is compatible with static page cache. Option to use WP_SHORTINIT method in a direct Ajax request.


Languages

Language:PHP 95.6%Language:JavaScript 4.4%