Version Description
N/A
Download this release
Release Info
Developer | GamerZ |
Plugin | WP-PostViews |
Version | 1.70 |
Comparing to | |
See all releases |
Code changes from version 1.69 to 1.70
- readme.txt +6 -3
- wp-postviews.php +7 -9
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: GamerZ
|
|
3 |
Donate link: http://lesterchan.net/site/donation/
|
4 |
Tags: views, hits, counter, postviews
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
Enables you to display how many times a post/page had been viewed.
|
10 |
|
@@ -23,9 +23,12 @@ Enables you to display how many times a post/page had been viewed.
|
|
23 |
* Plugin icon by [Iconmoon](http://www.icomoon.io) from [Flaticon](http://www.flaticon.com)
|
24 |
|
25 |
= Donations =
|
26 |
-
I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really
|
27 |
|
28 |
== Changelog ==
|
|
|
|
|
|
|
29 |
= Version 1.69 =
|
30 |
* NEW: Shortcode `[views]` or [views id="POST_ID"]` to embed view count into post
|
31 |
* NEW: Added template variable `%VIEW_COUNT_ROUNDED%` to support rounded view count like 10.1k or 11.2M
|
3 |
Donate link: http://lesterchan.net/site/donation/
|
4 |
Tags: views, hits, counter, postviews
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 4.2
|
7 |
+
Stable tag: 1.70
|
8 |
|
9 |
Enables you to display how many times a post/page had been viewed.
|
10 |
|
23 |
* Plugin icon by [Iconmoon](http://www.icomoon.io) from [Flaticon](http://www.flaticon.com)
|
24 |
|
25 |
= Donations =
|
26 |
+
I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
|
27 |
|
28 |
== Changelog ==
|
29 |
+
= Version 1.70 =
|
30 |
+
* FIXED: Integration with WP-Stats
|
31 |
+
|
32 |
= Version 1.69 =
|
33 |
* NEW: Shortcode `[views]` or [views id="POST_ID"]` to embed view count into post
|
34 |
* NEW: Added template variable `%VIEW_COUNT_ROUNDED%` to support rounded view count like 10.1k or 11.2M
|
wp-postviews.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP-PostViews
|
4 |
Plugin URI: http://lesterchan.net/portfolio/programming/php/
|
5 |
Description: Enables you to display how many times a post/page had been viewed.
|
6 |
-
Version: 1.
|
7 |
Author: Lester 'GaMerZ' Chan
|
8 |
Author URI: http://lesterchan.net
|
9 |
Text Domain: wp-postviews
|
@@ -11,7 +11,7 @@ Text Domain: wp-postviews
|
|
11 |
|
12 |
|
13 |
/*
|
14 |
-
Copyright
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License as published by
|
@@ -672,14 +672,12 @@ function views_sorting($local_wp_query) {
|
|
672 |
|
673 |
|
674 |
### Function: Plug Into WP-Stats
|
675 |
-
add_action('
|
676 |
function postviews_wp_stats() {
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
add_filter('wp_stats_page_most', 'postviews_page_most_stats');
|
682 |
-
}
|
683 |
}
|
684 |
|
685 |
|
3 |
Plugin Name: WP-PostViews
|
4 |
Plugin URI: http://lesterchan.net/portfolio/programming/php/
|
5 |
Description: Enables you to display how many times a post/page had been viewed.
|
6 |
+
Version: 1.70
|
7 |
Author: Lester 'GaMerZ' Chan
|
8 |
Author URI: http://lesterchan.net
|
9 |
Text Domain: wp-postviews
|
11 |
|
12 |
|
13 |
/*
|
14 |
+
Copyright 2015 Lester Chan (email : lesterchan@gmail.com)
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License as published by
|
672 |
|
673 |
|
674 |
### Function: Plug Into WP-Stats
|
675 |
+
add_action( 'plugins_loaded', 'postviews_wp_stats' );
|
676 |
function postviews_wp_stats() {
|
677 |
+
add_filter( 'wp_stats_page_admin_plugins', 'postviews_page_admin_general_stats' );
|
678 |
+
add_filter( 'wp_stats_page_admin_most', 'postviews_page_admin_most_stats' );
|
679 |
+
add_filter( 'wp_stats_page_plugins', 'postviews_page_general_stats' );
|
680 |
+
add_filter( 'wp_stats_page_most', 'postviews_page_most_stats' );
|
|
|
|
|
681 |
}
|
682 |
|
683 |
|