Skip to content

Instantly share code, notes, and snippets.

View jbma's full-sized avatar

Jean-Baptiste Marchand-Arvier jbma

View GitHub Profile
<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fseeitfeelit.nl&amp;width&amp;height=258&amp;colorscheme=light&amp;show_faces=true&amp;header=false&amp;stream=false&amp;show_border=false&amp;appId=265059210316703" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:258px;" allowTransparency="true"></iframe>
<?php
add_filter( 'wp', '__deactivate_rocket_lazyload_if_page' );
function __deactivate_rocket_lazyload_if_page()
{
if( is_page('blog') ) {
add_filter( 'do_rocket_lazyload', '__return_false' );
}
<?php
add_filter( 'wp', '__deactivate_rocket_lazyload_if_page' );
function __deactivate_rocket_lazyload_if_page(){
if( is_page(array('guida-alpina','servizi-guida','biography','outdoor-activities','watashi-ni-tsuite','gaidosabisu','route-dimai-eotvos','via-dimai-eotvos')) ) {
add_filter( 'do_rocket_lazyload', '__return_false' );
}
}
<?php
add_filter( 'wp', '__deactivate_rocket_lazyload_if_home' );
function __deactivate_rocket_lazyload_if_home()
{
if( is_home()|| is_front_page() ) {
add_filter( 'do_rocket_lazyload', '__return_false' );
}
<?php
add_filter( 'wp', '__deactivate_rocket_lazyload_if_page' );
function __deactivate_rocket_lazyload_if_page()
{
if( is_page('about') ) {
add_filter( 'do_rocket_lazyload', '__return_false' );
}
add_filter( 'rocket_minify_excluded_external_js', '__rocket_excluded_external_js_236' );
function __rocket_excluded_external_js_236( $excluded_external_js ) {
$excluded_external_js[] = 'exemple.disqus.com';
return $excluded_external_js;
}
add_filter( 'rocket_minify_excluded_external_js', '__rocket_excluded_external_js_236' );
function __rocket_excluded_external_js_236( $excluded_external_js ) {
$excluded_external_js[] = 'app.getresponse.com';
return $excluded_external_js;
}
<?php
add_filter( 'wp', '__deactivate_rocket_lazyload_if_product' );
function __deactivate_rocket_lazyload_if_product()
{
if( is_singular('product') ) {
add_filter( 'do_rocket_lazyload', '__return_false' );
}
<?php
add_filter( 'wp', '__deactivate_rocket_lazyload_if_page' );
function __deactivate_rocket_lazyload_if_page()
{
if( is_page(array('guida-alpina','en/biography','jp/watashi-ni-tsuite','en/true-stories/route-dimai-eotvos','storie-vere/via-dimai-eotvos')) ) {
add_filter( 'do_rocket_lazyload', '__return_false' );
}
add_filter('lengow_extra_columns', 'lengow_add_extra_columns');
add_filter('lengow_extra_field_value', 'lengow_extra_field_value', null, 3);
function lengow_add_extra_columns($extra_columns) {
$extra_columns[] = '_product_type_bulb';
//$extra_columns[] = 'additional_field_2';
return $extra_columns;
}
function lengow_extra_field_value($value, $field, $lengow_product) {