Skip to content

Commit

Permalink
Merge pull request #3 from happyprime/fix/remove-comment-rewrite-rules
Browse files Browse the repository at this point in the history
Remove comment rewrite rules
  • Loading branch information
philcable authored Jun 14, 2022
2 parents ad4f95c + 4506dbf commit c1849e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
// And disable the comments feed.
add_filter( 'feed_links_show_comments_feed', '__return_false' );

// And remove comment rewrite rules.
add_filter( 'comments_rewrite_rules', '__return_empty_array' );

// Then remove comment support from everything.
add_action( 'init', __NAMESPACE__ . '\remove_comment_support', 99 );
add_action( 'init', __NAMESPACE__ . '\remove_trackback_support', 99 );
Expand Down

0 comments on commit c1849e3

Please sign in to comment.