Created
January 14, 2021 17:20
-
-
Save wpflames/6a426739681b2634330402ad27d2b2ae to your computer and use it in GitHub Desktop.
Facebook Likebox to Genesis
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 | |
| // ========================================================================= | |
| // FACEBOOK SDK | |
| // ========================================================================= | |
| function add_facebook_sdk(){ | |
| include('lib/facebook-sdk.php'); | |
| } | |
| add_action('genesis_before', 'add_facebook_sdk'); | |
| // ========================================================================= | |
| // FACEBOOK LIKEBOX SHORTCODE | |
| // ========================================================================= | |
| function add_facebook_likebox(){ | |
| ob_start(); | |
| include('lib/facebook-likebox.php'); | |
| return ob_get_clean(); | |
| } | |
| add_shortcode('facebook', 'add_facebook_likebox'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment