官术网_书友最值得收藏!

  • WordPress 2.7 Cookbook
  • Jean-Baptiste Jung
  • 236字
  • 2021-04-01 13:55:46

Editing plugins with the WordPress built-in Plugin Editor

As WordPress features an editor allowing you to live edit your theme, it also provides another editor for editing plugins. Chapter 4 covers plugins in detail.

Getting ready

To access the Plugin Editor, log in to your WordPress Dashboard and go to Plugins | Editor located at the top of the screen. Then, select the plugin to edit from the list located on the right of the screen.

Getting ready

How to do it...

  1. Once you have selected the plugin to edit, make the desired changes.
  2. Finally, click on the Update File button when you are done. The file will be saved.

How it works...

The built-in Plugin Editor works in exactly the same way as the theme editor. When a file is modified and saved, the modifications are written directly in the source file—there's no copy or backup.

There's more...

Similar to the Theme Editor, even the Plugin Editor is a very useful tool. However, it also can raise problems in the case of a mistake in the code.

  • Unless you're very sure about what you're doing, always deactivate the plugin before editing it.
  • Always have a backup of the plugin you're editing, as the Plugin Editor does not save any revisions.
  • If—after editing a plugin—your blog is messed up, deactivate the plugin, and upload your plugin files backup to your wp-content/plugins/yourplugin directory.
主站蜘蛛池模板: 那曲县| 临夏市| 德保县| 常山县| 原平市| 木兰县| 新竹市| 延庆县| 大悟县| 准格尔旗| 包头市| 察隅县| 五峰| 炎陵县| 黑河市| 张家界市| 鹤岗市| 老河口市| 故城县| 南阳市| 乌兰县| 辉南县| 屏边| 合肥市| 安乡县| 略阳县| 宜春市| 思茅市| 龙南县| 荔波县| 平远县| 定西市| 琼中| 手机| 翁牛特旗| 汉沽区| 出国| 延庆县| 屏东市| 铁岭市| 锡林郭勒盟|