Skip to content

Commit

Permalink
Add Facebook Like count to admin bar, see #32
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredatch committed Apr 10, 2019
1 parent 3d1efcf commit 388998d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/class-shared-counts-front.php
Expand Up @@ -749,6 +749,11 @@ public function admin_bar( $wp_admin_bar ) {
'parent' => 'shared_counts',
'title' => esc_html__( 'Facebook Total:', 'shared-counts' ) . ' ' . ( ! empty( $counts['Facebook']['total_count'] ) ? number_format( absint( $counts['Facebook']['total_count'] ) ) : '0' ),
],
[
'id' => 'shared_counts_facebook_likes',
'parent' => 'shared_counts',
'title' => esc_html__( 'Facebook Likes:', 'shared-counts' ) . ' ' . ( ! empty( $counts['Facebook']['like_count'] ) ? number_format( absint( $counts['Facebook']['like_count'] ) ) : '0' ),
],
[
'id' => 'shared_counts_facebook_shares',
'parent' => 'shared_counts',
Expand Down

0 comments on commit 388998d

Please sign in to comment.