snipt

Ctrl+h for KB shortcuts

PHP

Disallow theme/plugin editor

1
2
3
<?php
define( 'DISALLOW_FILE_EDIT', true );
?>
https://snipt.net/embed/d5352bee4c9e73c76301fd3b9d6648b9/
/raw/d5352bee4c9e73c76301fd3b9d6648b9/
d5352bee4c9e73c76301fd3b9d6648b9
php
PHP
3
2019-06-27T04:05:54
True
False
False
Sep 20, 2012 at 10:40 AM
/api/public/snipt/47387/
disallow-themeplugin-editor
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a><span class="nb">define</span><span class="p">(</span> <span class="s1">&#39;DISALLOW_FILE_EDIT&#39;</span><span class="p">,</span> <span class="k">true</span> <span class="p">);</span> </span><span id="L-3"><a name="L-3"></a><span class="cp">?&gt;</span><span class="x"></span> </span></pre></div> </td></tr></table>
editor, plugin, theme, wordpress, wpconfig