snipt

Ctrl+h for KB shortcuts
Notice: Snipt is moving away from free accounts on May 1st, 2014. Read more about the transition here.
#29887

PHP

changes things in contact form 7

1
2
3
define ('WPCF7_LOAD_JS', false); // Added to disable JS loading
define ('WPCF7_LOAD_CSS', false); // Added to disable CSS loading
define ('WPCF7_AUTOP', false); //removes p and br
https://snipt.net/embed/f47a2278af2395de75b6e596197f4f95/
https://snipt.net/raw/f47a2278af2395de75b6e596197f4f95/
f47a2278af2395de75b6e596197f4f95
php
PHP
3
2014-04-23T06:18:54
True
False
/api/public/snipt/29887/
changes-things-in-contact-form-7
<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 id="L-1"><a name="L-1"></a><span class="x">define (&#39;WPCF7_LOAD_JS&#39;, false); // Added to disable JS loading</span> </span><span id="L-2"><a name="L-2"></a><span class="x">define (&#39;WPCF7_LOAD_CSS&#39;, false); // Added to disable CSS loading</span> </span><span id="L-3"><a name="L-3"></a><span class="x">define (&#39;WPCF7_AUTOP&#39;, false); //removes p and br</span> </span></pre></div> </td></tr></table>
"forms. wordpress", contact-form-7
#29886

PHP

adds contact form 7 into wordpress template

<?php echo do_shortcode('[contact-form 1 "Formular de feedback"]'); ?>
https://snipt.net/embed/266aa4218075b474b8e87be42f856fdc/
https://snipt.net/raw/266aa4218075b474b8e87be42f856fdc/
266aa4218075b474b8e87be42f856fdc
php
PHP
1
2014-04-24T20:30:20
True
False
/api/public/snipt/29886/
adds-contact-form-7-into-wordpress-template
<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 id="L-1"><a name="L-1"></a><span class="cp">&lt;?php</span> <span class="k">echo</span> <span class="nx">do_shortcode</span><span class="p">(</span><span class="s1">&#39;[contact-form 1 &quot;Formular de feedback&quot;]&#39;</span><span class="p">);</span> <span class="cp">?&gt;</span><span class="x"></span> </span></pre></div> </td></tr></table>
contact-form-7, forms, wordpress