Categories
islba-company

islba-inside code snippets

look what we found at lhe lost & found counter
code snippets for #WordPress

The Yard

Disclaimer:
[use this code at your own risk and only if you know what you are doing. no liability from us for the consequences. so leave us alone if things go sideways ]

function  wpb_remove_commentsip( $comment_author_ip ) {
	return '';
	}
add_filter( 'pre_comment_user_ip', 'wpb_remove_commentsip' );

The Barn

Disclaimer:
[use this code at your own risk and only if you know what you are doing. no liability from us for the consequences. so leave us alone if things go sideways]


function disable_emojis_remove_dns_prefetch( $urls, $relation_type ) {
 if ( 'dns-prefetch' == $relation_type ) {
 $emoji_svg_url = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2/svg/' );

$urls = array_diff( $urls, array( $emoji_svg_url ) );
 }

return $urls;
}