Last active
September 14, 2020 03:14
-
-
Save jas8522/dc85b2d88766c82adf7ff74230a3e6c0 to your computer and use it in GitHub Desktop.
Creates fl_social_icons shortcode for inserting BeaverBuilder theme shortcodes in your content
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
/** | |
* Custom Social Icons Shortcode: [fl_social_icons circle=true] | |
*/ | |
function ws_social_icons( $atts ) { | |
extract( shortcode_atts( array( | |
'circle' => true, | |
), $atts, 'multilink' ) ); | |
ob_start( ); | |
FLTheme::social_icons( $atts['circle'] ); | |
return ob_get_clean( ); | |
} | |
add_shortcode( 'fl_social_icons', 'ws_social_icons' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment