Allows you to programatically update the total views count for a given post.

Usage

pvc_update_post_views( $post_id = 0, $post_views = 0 );

Parameters

$post_id int required

The post ID

$post_views int required

Post views number to be set for a given post ID.

Return

The function returns a bool value. FALSE if the post doesn’t exist; TRUE if the post exists and the update was successful.