File tree 2 files changed +440
-0
lines changed
2 files changed +440
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,13 @@ function posts_and_users_stats_add_menu() {
95
95
'posts_and_users_stats_posts ' ,
96
96
'posts_and_users_stats_show_posts '
97
97
);
98
+ add_management_page (
99
+ __ ( 'Comments Statistics ' , 'posts-and-users-stats ' ),
100
+ __ ( 'Comments Statistics ' , 'posts-and-users-stats ' ),
101
+ 'export ' ,
102
+ 'posts_and_users_stats_comments ' ,
103
+ 'posts_and_users_stats_show_comments '
104
+ );
98
105
add_management_page (
99
106
__ ( 'Users Statistics ' , 'posts-and-users-stats ' ),
100
107
__ ( 'Users Statistics ' , 'posts-and-users-stats ' ),
@@ -124,6 +131,15 @@ function posts_and_users_stats_show_posts() {
124
131
}
125
132
}
126
133
134
+ /**
135
+ * Show the comments stats page.
136
+ */
137
+ function posts_and_users_stats_show_comments () {
138
+ if ( posts_and_users_stats_current_user_can () ) {
139
+ include_once 'views/comments.php ' ;
140
+ }
141
+ }
142
+
127
143
/**
128
144
* Show the users stats page.
129
145
*/
You can’t perform that action at this time.
0 commit comments