public static function add_history_views_per_hundred($post_id) { $post = theme_cache::get_post($post_id); if (!$post) { return false; } $meta = ['type' => self::$type_key, 'timestamp' => self::get_timestamp(), 'post-id' => $post->ID, 'views' => self::get_views($post_id), 'points' => theme_custom_point::get_point_value(self::$type_key)]; /** * add to history */ theme_custom_point::add_history($post->post_author, $meta); }