// 删除评论中的链接 function mytheme_remove_url($arg) { $arg['url'] = ''; return $arg; } add_filter('comment_form_default_fields', 'mytheme_remove_url');
// remove comment date && time 删除评论日期时间 function wpb_remove_comment_date($date, $d, $comment) { if ( !is_admin() ) { return; } else { return $date; } } add_filter( 'get_comment_date', 'wpb_remove_comment_date', 10, 3); // remove comment time function wpb_remove_comment_time($date, $d, $comment) { if ( !is_admin() ) { return; } else { return $date; } } // remove comment's edit button 删除评论编辑按钮 add_filter( 'get_comment_time', 'wpb_remove_comment_time', 10, 3); add_filter( 'sce_comment_time', 'edit_sce_comment_time' ); function edit_sce_comment_time( $time_in_minutes ) { return 10; }
//remove author link on comments 删除评论者的website url function disable_comment_author_links( $author_link ){ return strip_tags( $author_link ); } add_filter( 'get_comment_author_link', 'disable_comment_author_links' );