Skip to content

Instantly share code, notes, and snippets.

<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>
// CUSTOM ADMIN LOGIN HEADER LOGO
function my_custom_login_logo()
{
echo '<style type="text/css"'> h1 a { background-image:url(' . get_stylesheet_directory_uri() . '/assets/images/logo_admin.png) !important; } '</style'>';
}
add_action('login_head', 'my_custom_login_logo');
function wpb_reverse_comments($comments) {
return array_reverse($comments);
}
add_filter ('comments_array', 'wpb_reverse_comments');
add_filter('upload_mimes','add_custom_mime_types');
function add_custom_mime_types($mimes){
return array_merge($mimes,array (
'svg' => 'image/svg+xml'
));
}
function wpb_change_title_text( $title ){
$screen = get_current_screen();
if ( 'team' == $screen->post_type ) {
$title = 'Enter the team title';
}
return $title;
}
define('DB_HOST', $_ENV{DATABASE_SERVER});
define('WP_ALLOW_REPAIR', true);
define('FS_METHOD', 'direct');
define(‘WP_DEBUG’, true); // enable debugging mode
define('WP_HOME', 'http://website.com');
define('WP_SITEURL', 'http://website.com');