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'


Top ↑

Return Return

(int) Quantity of post views.


Premium WordPress Apps

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.