Skip to content

Commit bedee24

Browse files
committed
update
1 parent 04d9b2e commit bedee24

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

functions.php

+6
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,12 @@ function mxp_pre_get_empty_avatar_data($args, $id_or_email) {
630630
}
631631
add_filter('pre_get_avatar_data', 'mxp_pre_get_empty_avatar_data', PHP_INT_MAX, 2);
632632

633+
//遮蔽所有留言中留言人提供的網址
634+
function mxp_get_comment_author_url($url, $id, $comment) {
635+
return "";
636+
}
637+
add_filter('get_comment_author_url', 'mxp_get_comment_author_url', 11, 3);
638+
633639
if (!function_exists('wpdb_bulk_insert')) {
634640
//一次大量新增資料的資料庫操作方法 Ref: https://gist.github.com/pauln/884e1a229d439640fbe35e848852fe0b
635641
function wpdb_bulk_insert($table, $rows) {

0 commit comments

Comments
 (0)