$post_id = (int) sanitize_key( $_GET['postviews_id'] );
do_action( 'postviews_increment_views_ajax', ( $post_views + 1 ) );
add_action('postviews_increment_views_ajax','add_rating_with_add_view');
function add_rating_with_add_view($wiev){/*$post_id надо получить сюда*/}