snipt

Ctrl+h for KB shortcuts

PHP

Untitled

1
2
3
4
// Lägg till stöd för utvalda bilder
if ( function_exists( 'add_theme_support' ) ) { 
add_theme_support( 'post-thumbnails', array('post','page') );
}
https://snipt.net/embed/e903980d2e11ca4685ff9af6a6985398/
/raw/e903980d2e11ca4685ff9af6a6985398/
e903980d2e11ca4685ff9af6a6985398
php
PHP
4
2019-07-18T08:45:57
True
False
False
/api/public/snipt/46585/
-767
<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">// Lägg till stöd för utvalda bilder</span> </span><span id="L-2"><a name="L-2"></a><span class="x">if ( function_exists( &#39;add_theme_support&#39; ) ) { </span> </span><span id="L-3"><a name="L-3"></a><span class="x">add_theme_support( &#39;post-thumbnails&#39;, array(&#39;post&#39;,&#39;page&#39;) );</span> </span><span id="L-4"><a name="L-4"></a><span class="x">}</span> </span></pre></div> </td></tr></table>