0
X
Add Snippet To Project
New Project
Add To Existing Project
<?php
add_action( 'template_redirect', 'custom_410_for_feeds' );
function custom_410_for_feeds() {
if ( is_feed() && '/feed/' !== trailingslashit( $_SERVER['REQUEST_URI'] ) ) {
status_header( 410 );
exit;
}
}