Skip to content

Snippet: Replace the Social Share with a Shortcode

Important: This snippet is no longer required, you can now do this in the Customizer!
/**
 * Replace theme social share
 *
 * @see partials/social-share.php
 */
function myprefix_wpex_custom_social_share() {
    return '[wp_social_sharing]';
}
add_filter( 'wpex_custom_social_share', 'myprefix_wpex_custom_social_share' );
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)
Back To Top