Description Usage Arguments Value References Examples
Get a site's stats
1 | wp_site_stats(site)
|
site |
site id or domain; if not specified, the primary site of the authenticated user will be used. |
list with a great deal of stats metadata. You are probably most interested in the 'visits' element.
<https://developer.wordpress.com/docs/api/1.1/get/sites/$site/stats/>
1 2 3 4 | if (interactive()) {
wp_auth()
wp_site_stats()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.