-
-
Save billerickson/6af77426ec57c6755c74cd382d91b736 to your computer and use it in GitHub Desktop.
This file contains 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 | |
/** | |
* 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