One Reason Why WordPress Plugin Activation Causes Fatal Error 치명적인 오류로 인해 이유 중의 하나입니다 플러그 접속식 활성화
When you declare a function in your plugin code which has already been declared previously in either WordPress code or in one of the plugins. 귀하의 경우 플러그 접속 코드를 선언하는 기능 중 하나가 이미 선언 이전에 중 하나에 wordpress 코드 또는 플러그 접속합니다. To prevent this you should declare your functions like this: 이것을 방지의 기능을 선언해야합니다 이렇게 :
if(!function_exists('your_function_name')) { function your_function_name() { //.... 만약 (! function_exists ( 'your_function_name')) (기능을 your_function_name () (//.... Function code } } 기능 코드))
It is a good idea to always define and consistently use a namespace. 그것은 좋은 아이디어를 항상 사용하는 네임 스페이스를 정의하고 일관되게합니다. For example we name all our plugin functions prefixed with tg, to identify our company. 예를 들어 우리가 우리의 플러그 접속 기능을 접두어가 붙은 이름을 다 tg, 우리 회사를 식별합니다.
Filed under 밑에 Headline News 헤드 라인 뉴스 , How To 하는 방법을 , Pro Blogging 직업적인 블로깅 , Web 웹 , Web 2.0 웹 2.0 , WordPress wordpress , WordPress Plugin 플러그 접속식 | |
| |
RSS 2.0 rss 2.0 | |
Trackback 트랙백 this Article | 이 문서 |
Email this Article 전자 우편이 문서
You may also like to read 같은를 읽을 수있습니다 |



