0
저는 독일에 소재한 덴마크의 운송 회사를위한 Wordpress 웹 사이트를 만들고 있는데, 홈페이지에서 자동으로 "ø/Ø"문자를 "ö/영형".전체 Wordpress 페이지에서 다른 단어로 편지 바꾸기
저는 $ 문자열에서 ø/Ø를 ö/Ö로 대체 한 PHP 함수/프로그램을 만들었습니다.
하지만 어떻게하면 Wordpress 페이지의 모든 문자를 검사 할 수 있습니까?
1. 플러그인 (아마도 가장 좋은 방법) :
당신을 위해 일을 할 수 this one를 살펴 보자<?php
$string = "Öýra Bibendum Trisö tique agergöet dellentesque Öibendum Öristique gmet reölentesqueö.";
$newSmall = "ö";
$oldSmall = "ø";
$onlyconsonants = str_replace($oldSmall, $newSmall, $string);
$newLarge = "Ö";
$oldLarge = "Ø";
$onlyconsonants = str_replace($oldLarge, $newLarge, $onlyconsonants);
echo $onlyconsonants;
?>
빨리 : 글자를 바꿀 자바 스크립트 ... 그러나 href를주의하십시오. – Dez