/** * Update post view in frontend * * @global type $post * @return type */ function post_view() { global $post; if (!isset($post) || !is_object($post)) { return; } if (is_single($post->ID)) { WR_Pb_Helper_Functions::set_postview($post->ID); } }