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

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.
主站蜘蛛池模板: 临朐县| 徐水县| 保靖县| 淮南市| 嵊州市| 乐平市| 奈曼旗| 海口市| 永嘉县| 花垣县| 射洪县| 栾城县| 德钦县| 湖口县| 辽阳市| 富阳市| 杭锦后旗| 横山县| 海盐县| 龙泉市| 丹寨县| 犍为县| 南投市| 南皮县| 阳朔县| 德昌县| 祁连县| 绿春县| 成武县| 阳朔县| 安新县| 子洲县| 武隆县| 潼南县| 仙游县| 闽侯县| 广河县| 德钦县| 滕州市| 天台县| 甘泉县|