Anwendung

Um zu verhindern dass der Benutzer Plugins oder Themes selber aktualisiert bietet WordPress die Funktion die Möglichkeit Updates durchzuführen und deaktiviert den Plugin/Theme editor. Hier wird in der WP-config.php der Wer für DISALLOW_FILE_MODS auf true gesetzt.

 

define( 'DISALLOW_FILE_MODS', true );

 

Auszug aus dem WordPress-Codex

This will block users being able to use the plugin and theme installation/update functionality from the WordPress admin area. Setting this constant also disables the Plugin and Theme editor (i.e. you don’t need to set DISALLOW_FILE_MODS and DISALLOW_FILE_EDIT, as on its own DISALLOW_FILE_MODS will have the same effect).

 

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.