Additional Restriction before Count
-
Please, add additional restriction to plugin options before count.
Might not only I, always have to update code manually every time plugin get update.
For me it is important:
– not count if author view his own post
– count only published post, and not count pending or when preview from admin
– restrict count only for specific roles, one or multiple
For example, line 118 of wp-postviews.php:if( $post->post_author != $user_ID && $post->post_status == 'publish' && !current_user_can( 'upload_files' ) &&
… or selected roles in array, than update_post_meta ..Keep developing. Thanks!
The topic ‘Additional Restriction before Count’ is closed to new replies.