Skip to content

Instantly share code, notes, and snippets.

@wpweb101
Created January 28, 2019 13:06
Show Gist options
  • Select an option

  • Save wpweb101/b16db9fe55b552d24424e05f8ac54d77 to your computer and use it in GitHub Desktop.

Select an option

Save wpweb101/b16db9fe55b552d24424e05f8ac54d77 to your computer and use it in GitHub Desktop.
Display followers count after "Noify followers for this update" option
<?php // Do not add this if it's already added
function wpw_fp_display_followers_count ( $post ) {
$post_ID = $post->ID;
$followers_count = wpw_fp_get_post_followers_count( $post_ID );
echo '<div class="misc-pub-section misc-pub-section-last">
<span id="timestamp">
<label for="wpw_fp_followers_count"> '.__( 'Followers Count:', 'wpwfp' ).'
<strong>' . $followers_count . '</strong>
</label>
</span>
</div>';
}
add_action('wpw_fp_after_notify_followers', 'wpw_fp_display_followers_count');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment