Files
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -05:00

9 lines
343 B
PHP

<?php
/* Remove Share Buttons buttons from posts list */
function dt_remove_jetpack_sharebuttons () {
remove_filter( 'the_content', 'sharing_display', 19 );
remove_filter( 'the_excerpt', 'sharing_display', 19 );
remove_action( 'wp_head', 'sharing_add_header', 1 );
}
add_action( 'dt_layout_before_loop', 'dt_remove_jetpack_sharebuttons' );