当您将wordpress网站提供给不是技术的客户,因为他可以使用wordpress管理面板来管理他/她的网站,那么您应该从管理面板中禁用主题编辑器选项。它将停止使用wordpress管理面板直接在代码中进行任何更改。
在wordpress管理中禁用主题编辑器选项复制下面的代码粘贴到当前激活的主题文件夹的functions.php文件。
< ?php
// disable the theme / plugin text editor in admin
define('disallow_file_edit', true);
?>