Steps for plugins_url in wordpress plug-in development

Source: Internet
Author: User
The plugins_url method in wordpress plug-in development I used plugins_url () in a php file. the error message is that the undefined method is correct in another php file. both files are in the same directory, & lt ;? Php & nbsp; echo & nbsp; plugins_url ('securimage/securim: plugins_url method in wordpress plug-in development
I used the plugins_url () method in a php file and reported an error saying the undefined method.
But there is no problem in another php file. both files are in the same directory,

'?>这样是没问题的。这个文件是和html混合的

另一个文件是纯php文件,没有html。plugins_url('/securimage/securimage.php',__FILE__);这样一句话就会报错说是未定义的方法

请求帮助 分享到:
------解决方案--------------------
估计没引入什么文件
------解决方案--------------------
贴出错误信息以供分析

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.