snipt

Ctrl+h for KB shortcuts

PHP

Change WordPress Autosave Interval from 60 to 300 sec

define('AUTOSAVE_INTERVAL', 300 ); // change WP autosave interval from 60 seconds to 300 seconds
https://snipt.net/embed/b817cc7d6ad7f08302030ee1aeffcb89/
/raw/b817cc7d6ad7f08302030ee1aeffcb89/
b817cc7d6ad7f08302030ee1aeffcb89
php
PHP
1
2019-07-21T21:07:40
True
False
False
/api/public/snipt/32518/
change-wordpress-autosave-interval-from-60-to-300-sec
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="x">define(&#39;AUTOSAVE_INTERVAL&#39;, 300 ); // change WP autosave interval from 60 seconds to 300 seconds</span> </span></pre></div> </td></tr></table>
autosave