Skip to content

Instantly share code, notes, and snippets.

define('FS_METHOD', 'direct');
define( 'WP_SITEURL', 'http://domain.com' );
define( 'WP_HOME', 'http://domain.com' );
function wpb_remove_loginshake() {
remove_action('login_head', 'wp_shake_js', 12);
}
add_action('login_head', 'wpb_remove_loginshake');
/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );
#aboutPage {
position: relative;
top: 50px !important;
}
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".get_bloginfo('url'));
exit();
?>
$location = get_site_url() . "/contact";
wp_redirect( $location, 301 );
exit;
background: #fff;
<li id="header_link_sitemap">
<a href="{$link->getPageLink('sitemap')|escape:'html'}"
title="{l s='sitemap' mod='blockpermanentlinks'}">{l s='sitemap' mod='blockpermanentlinks'}
</a>
</li>
add_filter('upload_mimes','add_custom_mime_types');
function add_custom_mime_types($mimes){
return array_merge($mimes,array (
'svg' => 'image/svg+xml'
));
}