Created
January 28, 2019 13:06
-
-
Save wpweb101/b16db9fe55b552d24424e05f8ac54d77 to your computer and use it in GitHub Desktop.
Display followers count after "Noify followers for this update" option
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 // 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