• Then, code the MyPlugin class, as shown in Listing 13.

    接下来编写 MyPlugin代码如 清单13

    youdao

  • For example, if the plug-in directory is called myplugin, name the file myplugin.php.

    例如如果插件目录名称myplugin,那么此文件就应该命名为myplugin . php。

    youdao

  • When the Web application starts, it displays a message saying "MyPlugin starting" and sets the system's proxy and port.

    启动Web应用程序时,显示条消息MyPlugin starting”,设置系统proxy 和 port 属性。

    youdao

  • After creating the project, the directory listing of the your WordPress_home/wp-content/plugins/myplugin directory will look like Listing 1.

    创建项目,WordPress_home/wp-content/plugins/myplugin目录目录列表类似清单1

    youdao

  • By specifying act=myPlugin/myReports, index.php sees that it is a path name and therefore recognizes that you are loading a plug-in instead of a regular module.

    通过指定act=myPlugin/myReports,index.php 就知道路径从而意识正在加载插件而不是模块

    youdao

  • Then browse to or type the name of the directory that you just created (for example, my directory is /Users/ngood/Sites/blog/wp-content/plugins/myplugin) in the Directory box, as Figure 2 shows.

    接下来浏览Directory键入刚刚创建目录名称例如的目录 /Users/ngood/Sites/blog/wp-content/plugins/myplugin),如图 2 所示。

    youdao

  • Then browse to or type the name of the directory that you just created (for example, my directory is /Users/ngood/Sites/blog/wp-content/plugins/myplugin) in the Directory box, as Figure 2 shows.

    接下来浏览Directory键入刚刚创建目录名称例如的目录 /Users/ngood/Sites/blog/wp-content/plugins/myplugin),如图 2 所示。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定