Implementation of forbidding WordPress background editing theme and plug-in permissions

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 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.

Related Article
WordPress displays the registration time of the login user in the frontend

When using WordPress to build a website, some users want to display the user registration time in the frontend, but Read more

WordPress adds the number of SQL queries at the bottom

An excellent woodpress theme is definitely that the less SQL consulting is used, the better. How can we see how Read more

Some WordPress articles can be seen after comments / replies

If we want to hide part of the content of the article and need the user's comments and replies to Read more

WordPress common template function reference document

Basic template filefile namedescribe style.css Theme style file index.php Home page template file header.php Header template file single.php Single article Read more

Leave a Reply

Your email address will not be published. Required fields are marked *

To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image