A helper function to call the stats API
Parameters
Name | Type | Description |
---|---|---|
$table | string | Optional. Table for stats can be views, postviews, referrers, searchterms, clicks. Default is views. |
$end_data | string | Optional. The last day of the desired time frame. Format is 'Y-m-d' (e.g. 2007-05-01) and default is UTC date. |
$num_days | int | Optional. The length of the desired time frame. Default is 1. Maximum 90 days. |
$and | string | Optional. Possibility to refine the query with additional AND condition. Usually unused. |
$limit | int | Optional. The maximum number of records to return. Default is 100 (also the maximum). |
Return Value
array: Fresh tasty data