APP_Post_Statistics::get_stats_by( int $post_id, string $type = 'total' )
Returns page views for a post.
Package
Description Description
Parameters Parameters
- $post_id
(int) (Required) The post ID.
- $type
(string) (Optional) (optional) Return total or daily page views.
Default value: 'total'
Return Return
(int) Quantity of post views.