snipt

Ctrl+h for KB shortcuts

HTML

Custom Google+ share button link

https://plusone.google.com/_/+1/confirm?hl=en&url=your_url
https://snipt.net/embed/438bb8c9bad00081300bbcf50811a8dc/
/raw/438bb8c9bad00081300bbcf50811a8dc/
438bb8c9bad00081300bbcf50811a8dc
html
HTML
1
2019-07-14T11:08:22
True
False
False
/api/public/snipt/40088/
custom-google-share-button-link
<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>https://plusone.google.com/_/+1/confirm?hl=en<span class="err">&amp;</span>url=your_url </span></pre></div> </td></tr></table>
google+, html

HTML

Custom LinkedIn share button link

http://www.linkedin.com/shareArticle?mini=true&url=http://www.yoururl.com&title=Your title&summary=Your summary text&source=Your source
https://snipt.net/embed/84808e5bc6471ca6b66484f7d4f713f4/
/raw/84808e5bc6471ca6b66484f7d4f713f4/
84808e5bc6471ca6b66484f7d4f713f4
html
HTML
1
2019-07-15T15:05:02
True
False
False
/api/public/snipt/40087/
custom-linkedin-share-button
<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>http://www.linkedin.com/shareArticle?mini=true<span class="err">&amp;</span>url=http://www.yoururl.com<span class="err">&amp;</span>title=Your title<span class="err">&amp;</span>summary=Your summary text<span class="err">&amp;</span>source=Your source </span></pre></div> </td></tr></table>
html, linkedin

HTML

Custom Twitter share button link

https://twitter.com/share?hashtags=your,hashtags,comma,separated&text=Default tweet text&via=Screen name of the user to attribute the tweet to
https://snipt.net/embed/24493793a19e82f02955b1d6207d68ac/
/raw/24493793a19e82f02955b1d6207d68ac/
24493793a19e82f02955b1d6207d68ac
html
HTML
1
2019-07-16T10:33:57
True
False
False
/api/public/snipt/40086/
custom-twitter-share-link
<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>https://twitter.com/share?hashtags=your,hashtags,comma,separated<span class="err">&amp;</span>text=Default tweet text<span class="err">&amp;</span>via=Screen name of the user to attribute the tweet to </span></pre></div> </td></tr></table>
html, twitter

ApacheConf

Setting PHP Memory Limit in .htaccess

php_value memory_limit 64M
https://snipt.net/embed/30355940c5db855d848c556c6df1cf4b/
/raw/30355940c5db855d848c556c6df1cf4b/
30355940c5db855d848c556c6df1cf4b
apacheconf
ApacheConf
1
2019-07-12T05:00:10
True
False
False
/api/public/snipt/39909/
setting-php-memory-limit-in-htaccess
<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="nb">php_value</span> memory_limit <span class="m">64</span>M </span></pre></div> </td></tr></table>
.htaccess

PHP

Allow HTML in WordPress User Biographical Info

remove_filter('pre_user_description','wp_filter_kses');
https://snipt.net/embed/b8f68811d5c7f2c0366bd199821b8491/
/raw/b8f68811d5c7f2c0366bd199821b8491/
b8f68811d5c7f2c0366bd199821b8491
php
PHP
1
2019-07-03T03:25:56
True
False
False
/api/public/snipt/39907/
allow-html-in-wordpress-user-biographical-info
<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">remove_filter(&#39;pre_user_description&#39;,&#39;wp_filter_kses&#39;);</span> </span></pre></div> </td></tr></table>
wordpress

PHP

Register any number of WordPress Custom Menu Locations

1
2
3
4
if(function_exists('register_nav_menus'))
{
    register_nav_menus(array('main-menu' => 'Main Menu','footer-menu' => 'Footer Menu'));
}
https://snipt.net/embed/27ccf007bc290823b2d09aa85cd2e799/
/raw/27ccf007bc290823b2d09aa85cd2e799/
27ccf007bc290823b2d09aa85cd2e799
php
PHP
4
2019-06-29T14:12:33
True
False
False
/api/public/snipt/39904/
register-any-number-of-wordpress-custom-menu-locations
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="x">if(function_exists(&#39;register_nav_menus&#39;))</span> </span><span id="L-2"><a name="L-2"></a><span class="x">{</span> </span><span id="L-3"><a name="L-3"></a><span class="x"> register_nav_menus(array(&#39;main-menu&#39; =&gt; &#39;Main Menu&#39;,&#39;footer-menu&#39; =&gt; &#39;Footer Menu&#39;));</span> </span><span id="L-4"><a name="L-4"></a><span class="x">}</span> </span></pre></div> </td></tr></table>
wordpress