From 388998d8e73a03862edd4b6d57e40e48c9f1ee49 Mon Sep 17 00:00:00 2001 From: Jared Atchison Date: Wed, 10 Apr 2019 16:50:49 -0500 Subject: [PATCH] Add Facebook Like count to admin bar, see #32 --- includes/class-shared-counts-front.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/class-shared-counts-front.php b/includes/class-shared-counts-front.php index 1ecf0b8..52d8e38 100644 --- a/includes/class-shared-counts-front.php +++ b/includes/class-shared-counts-front.php @@ -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',