回答編集履歴
1
文法の修正
test
CHANGED
@@ -14,9 +14,11 @@
|
|
14
14
|
|
15
15
|
$home_url = trailingslashit(get_home_url('/'));
|
16
16
|
|
17
|
+
$content = str_replace($home_url, '/', $content);//ここ修正
|
18
|
+
|
17
19
|
$content = str_replace('"og:image" content="', '"og:image" content="https://hogehoge/', $content);//ここ追記
|
18
20
|
|
19
|
-
return
|
21
|
+
return $content;//ここ修正
|
20
22
|
|
21
23
|
}
|
22
24
|
|