Skip to content

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.

Notifications You must be signed in to change notification settings

CybMeta/cyb-hits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published