snipt

Ctrl+h for KB shortcuts

PHP

Turn off WordPress Post Revision

define('WP_POST_REVISIONS', false ); // turn off post revision
https://snipt.net/embed/b0d62f64745a66bcf6961ba59f8ce4f2/
/raw/b0d62f64745a66bcf6961ba59f8ce4f2/
b0d62f64745a66bcf6961ba59f8ce4f2
php
PHP
1
2019-07-05T14:56:57
True
False
False
/api/public/snipt/32516/
turn-off-wordpress-post-revision
<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;WP_POST_REVISIONS&#39;, false ); // turn off post revision</span> </span></pre></div> </td></tr></table>
revision

Text only

WordPress Permalinks Best Practice 2

/%category%/%postname%/%post_id%/
https://snipt.net/embed/9923e706208c0b9f2ebfc5902fc8b09d/
/raw/9923e706208c0b9f2ebfc5902fc8b09d/
9923e706208c0b9f2ebfc5902fc8b09d
text
Text only
1
2019-07-12T14:16:22
True
False
False
/api/public/snipt/32515/
wordpress-permalinks-best-practice-2
<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>/%category%/%postname%/%post_id%/ </span></pre></div> </td></tr></table>
custom, post, type

Text only

WordPress Permalinks Best Practice

/%category%/%postname%-%post_id%/
https://snipt.net/embed/bf02a04e5e87facf121be2f837c5a68f/
/raw/bf02a04e5e87facf121be2f837c5a68f/
bf02a04e5e87facf121be2f837c5a68f
text
Text only
1
2019-07-08T05:51:06
True
False
False
/api/public/snipt/32514/
wordpress-permalinks-best-practice
<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>/%category%/%postname%-%post_id%/ </span></pre></div> </td></tr></table>
permalink

HTML

MailChimp Radio Button in Reverie 2

1
2
3
4
5
<ul class="row">
<li class="four columns"><label for="mce-EMAILTYPE-0"><input type="radio" value="html" name="EMAILTYPE" id="mce-EMAILTYPE-0" style="display:none;"><span class="custom radio"></span> html</label></li>
<li class="four columns"><label for="mce-EMAILTYPE-1"><input type="radio" value="text" name="EMAILTYPE" id="mce-EMAILTYPE-1" style="display:none;"><span class="custom radio"></span> text</label></li>
<li class="four columns"><label for="mce-EMAILTYPE-2"><input type="radio" value="mobile" name="EMAILTYPE" id="mce-EMAILTYPE-2" style="display:none;"><span class="custom radio"></span> mobile</label></li>
</ul>
https://snipt.net/embed/256be668fca8deff6b2a622ee7414ae0/
/raw/256be668fca8deff6b2a622ee7414ae0/
256be668fca8deff6b2a622ee7414ae0
html
HTML
5
2019-07-14T18:21:40
True
False
False
/api/public/snipt/32512/
mailchimp-radio-button-in-reverie-2
<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> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="p">&lt;</span><span class="nt">ul</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;row&quot;</span><span class="p">&gt;</span> </span><span id="L-2"><a name="L-2"></a><span class="p">&lt;</span><span class="nt">li</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;four columns&quot;</span><span class="p">&gt;&lt;</span><span class="nt">label</span> <span class="na">for</span><span class="o">=</span><span class="s">&quot;mce-EMAILTYPE-0&quot;</span><span class="p">&gt;&lt;</span><span class="nt">input</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;radio&quot;</span> <span class="na">value</span><span class="o">=</span><span class="s">&quot;html&quot;</span> <span class="na">name</span><span class="o">=</span><span class="s">&quot;EMAILTYPE&quot;</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;mce-EMAILTYPE-0&quot;</span> <span class="na">style</span><span class="o">=</span><span class="s">&quot;display:none;&quot;</span><span class="p">&gt;&lt;</span><span class="nt">span</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;custom radio&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">span</span><span class="p">&gt;</span> html<span class="p">&lt;/</span><span class="nt">label</span><span class="p">&gt;&lt;/</span><span class="nt">li</span><span class="p">&gt;</span> </span><span id="L-3"><a name="L-3"></a><span class="p">&lt;</span><span class="nt">li</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;four columns&quot;</span><span class="p">&gt;&lt;</span><span class="nt">label</span> <span class="na">for</span><span class="o">=</span><span class="s">&quot;mce-EMAILTYPE-1&quot;</span><span class="p">&gt;&lt;</span><span class="nt">input</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;radio&quot;</span> <span class="na">value</span><span class="o">=</span><span class="s">&quot;text&quot;</span> <span class="na">name</span><span class="o">=</span><span class="s">&quot;EMAILTYPE&quot;</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;mce-EMAILTYPE-1&quot;</span> <span class="na">style</span><span class="o">=</span><span class="s">&quot;display:none;&quot;</span><span class="p">&gt;&lt;</span><span class="nt">span</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;custom radio&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">span</span><span class="p">&gt;</span> text<span class="p">&lt;/</span><span class="nt">label</span><span class="p">&gt;&lt;/</span><span class="nt">li</span><span class="p">&gt;</span> </span><span id="L-4"><a name="L-4"></a><span class="p">&lt;</span><span class="nt">li</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;four columns&quot;</span><span class="p">&gt;&lt;</span><span class="nt">label</span> <span class="na">for</span><span class="o">=</span><span class="s">&quot;mce-EMAILTYPE-2&quot;</span><span class="p">&gt;&lt;</span><span class="nt">input</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;radio&quot;</span> <span class="na">value</span><span class="o">=</span><span class="s">&quot;mobile&quot;</span> <span class="na">name</span><span class="o">=</span><span class="s">&quot;EMAILTYPE&quot;</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;mce-EMAILTYPE-2&quot;</span> <span class="na">style</span><span class="o">=</span><span class="s">&quot;display:none;&quot;</span><span class="p">&gt;&lt;</span><span class="nt">span</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;custom radio&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">span</span><span class="p">&gt;</span> mobile<span class="p">&lt;/</span><span class="nt">label</span><span class="p">&gt;&lt;/</span><span class="nt">li</span><span class="p">&gt;</span> </span><span id="L-5"><a name="L-5"></a><span class="p">&lt;/</span><span class="nt">ul</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
form, mailchimp, reverie

HTML

MailChimp Radio Button in Reverie

1
2
3
4
5
<ul>
<li><label for="mce-EMAILTYPE-0"><input type="radio" value="html" name="EMAILTYPE" id="mce-EMAILTYPE-0"> html</label></li>
<li><label for="mce-EMAILTYPE-1"><input type="radio" value="text" name="EMAILTYPE" id="mce-EMAILTYPE-1"> text</label></li>
<li><label for="mce-EMAILTYPE-2"><input type="radio" value="mobile" name="EMAILTYPE" id="mce-EMAILTYPE-2"> mobile</label></li>
</ul>
https://snipt.net/embed/c031727cd0b70709bd4fa6a15d4f95ee/
/raw/c031727cd0b70709bd4fa6a15d4f95ee/
c031727cd0b70709bd4fa6a15d4f95ee
html
HTML
5
2019-07-10T19:51:24
True
False
False
/api/public/snipt/32511/
mailchimp-radio-button-in-reverie
<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> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="p">&lt;</span><span class="nt">ul</span><span class="p">&gt;</span> </span><span id="L-2"><a name="L-2"></a><span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;&lt;</span><span class="nt">label</span> <span class="na">for</span><span class="o">=</span><span class="s">&quot;mce-EMAILTYPE-0&quot;</span><span class="p">&gt;&lt;</span><span class="nt">input</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;radio&quot;</span> <span class="na">value</span><span class="o">=</span><span class="s">&quot;html&quot;</span> <span class="na">name</span><span class="o">=</span><span class="s">&quot;EMAILTYPE&quot;</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;mce-EMAILTYPE-0&quot;</span><span class="p">&gt;</span> html<span class="p">&lt;/</span><span class="nt">label</span><span class="p">&gt;&lt;/</span><span class="nt">li</span><span class="p">&gt;</span> </span><span id="L-3"><a name="L-3"></a><span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;&lt;</span><span class="nt">label</span> <span class="na">for</span><span class="o">=</span><span class="s">&quot;mce-EMAILTYPE-1&quot;</span><span class="p">&gt;&lt;</span><span class="nt">input</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;radio&quot;</span> <span class="na">value</span><span class="o">=</span><span class="s">&quot;text&quot;</span> <span class="na">name</span><span class="o">=</span><span class="s">&quot;EMAILTYPE&quot;</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;mce-EMAILTYPE-1&quot;</span><span class="p">&gt;</span> text<span class="p">&lt;/</span><span class="nt">label</span><span class="p">&gt;&lt;/</span><span class="nt">li</span><span class="p">&gt;</span> </span><span id="L-4"><a name="L-4"></a><span class="p">&lt;</span><span class="nt">li</span><span class="p">&gt;&lt;</span><span class="nt">label</span> <span class="na">for</span><span class="o">=</span><span class="s">&quot;mce-EMAILTYPE-2&quot;</span><span class="p">&gt;&lt;</span><span class="nt">input</span> <span class="na">type</span><span class="o">=</span><span class="s">&quot;radio&quot;</span> <span class="na">value</span><span class="o">=</span><span class="s">&quot;mobile&quot;</span> <span class="na">name</span><span class="o">=</span><span class="s">&quot;EMAILTYPE&quot;</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;mce-EMAILTYPE-2&quot;</span><span class="p">&gt;</span> mobile<span class="p">&lt;/</span><span class="nt">label</span><span class="p">&gt;&lt;/</span><span class="nt">li</span><span class="p">&gt;</span> </span><span id="L-5"><a name="L-5"></a><span class="p">&lt;/</span><span class="nt">ul</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
form, mailchimp, reverie