Snippets: Add Social Share To Archives

// Insert social share at the bottom of the archive
add_action( 'wpex_hook_content_bottom', function() {
	if ( is_archive() ) {
		wpex_social_share();
	}
} );

// Enable social share on archives
add_filter( 'wpex_has_social_share', function( $bool ) {
	if ( is_archive() ) {
		$bool = true;
	}
	return $bool;
} );
All PHP snippets should be added via a child theme's functions.php file.