Files
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -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' );