2024 Oct 2 Wed
//投稿コンテンツ内のaタグに自動でnofollowを付与 function add_nofollow($content) { $content = preg_replace_callback('/<a[^>]+/', function($matches) { $link = $matches[0]; $link .= ' rel="nofollow"'; return $link; }, $content); return $content; } add_filter('the_content', 'add_nofollow');
2025.07.07
2025.07.04
2025.06.24
2024.10.02
2024.08.29
0