Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created August 31, 2016 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/6af77426ec57c6755c74cd382d91b736 to your computer and use it in GitHub Desktop.
Save billerickson/6af77426ec57c6755c74cd382d91b736 to your computer and use it in GitHub Desktop.
<?php
/**
* Share Count Shortcode
*
*/
function be_share_count_shortcode() {
if( ! function_exists( 'ea_share' ) )
return;
ob_start();
ea_share()->front->display();
return ob_get_clean();
}
add_shortcode( 'share-count', 'be_share_count_shortcode' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment