Snippet: Create a Social Share Shortcode
Important: This snippet is no longer required. The theme now includes a Social Share element which you can use via your favorite builder.
add_shortcode( 'total_social_share', function() {
ob_start();
echo get_template_part( 'partials/social-share' );
return ob_get_clean();
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin.
We recommend Code Snippets (100% Free) or WPCode (sponsored)
We recommend Code Snippets (100% Free) or WPCode (sponsored)