wpcom_vip_stats_csv_print

Transforms data from the stats API into CSV.

Notice: this function will return more than one value than what you need because of a bug in the limit logic. Adjust accordingly.

Parameters

Name Type Description
$rows array Raw data from the stats API.
$table string Table for stats can be views, postviews, referrers, searchterms, clicks.
$limit int The maximum number of records to return.
$summarize null Optional. If set, will summarizes all the records.
$return_array bool|string Optional. If true, return an array, otherwise returns a string.

Return Value

array: Fresh tasty data

Ready to get started?

Drop us a note.

No matter where you are in the planning process, we’re happy to help, and we’re actual humans here on the other side of the form. 👋 We’re here to discuss your challenges and plans, evaluate your existing resources or a potential partner, or even make some initial recommendations. And, of course, we’re here to help any time you’re in the market for some robust WordPress awesomeness.