Created
December 10, 2013 11:16
-
-
Save jeherve/7889101 to your computer and use it in GitHub Desktop.
[Jetpack] Get the number of subscribers on your site
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Get the number of subscribers on your site | |
function jeherve_sub_count() { | |
if ( class_exists( 'Jetpack_Subscriptions_Widget' ) ) { | |
$subcount = Jetpack_Subscriptions_Widget::fetch_subscriber_count(); | |
echo $subcount['value']; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment