Here, we helped a netizen solve a small problem the day before yesterday. His WordPress website is managed by many people, but sometimes someone may operate disorderly, even modify his theme and plugin to edit the source code, which may lead to the risk of inaccessibility or error. Here I ask if there is any way to solve this problem. What I think of here is to give them only the editing function under the separate permission of users.
Or use restrictions to access WordPress Theme and plugin editing. He chooses the two.
/ / online editing of topics and plugin codes is prohibited wpfans.org editdefine( ‘DISALLOW_ FILE_ EDIT’, true );//Disable installing / upgrading / editing themes and pluginsdefine(‘DISALLOW_ FILE_ MODS’,true);
Here we add the code to the W in the root directory of the current website- config.php Page. Of course, check whether it is effective.