我需要更改此功能wp-includes\comment-template.php
function get_comments_link($post_id = 0) {
return apply_filters( 'get_comments_link', get_permalink( $post_id ) . '#comments', $post_id );
}
对此
function get_comments_link($post_id = 0) {
return apply_filters( 'get_comments_link', get_permalink( $post_id ) . '#disqusthread', $post_id );
}
但由于它没有连接到“动作挂钩”,我不知道如何“撤消”或“覆盖”它。