Skip to content

Instantly share code, notes, and snippets.

@WPsites
WPsites / wp-config.php
Created September 4, 2014 00:24
wp config file for symlinked installs
<?php
include_once("${_SERVER['DOCUMENT_ROOT']}/wp-config.php");
<?php
/*
Plugin Name: Remove Update Nag
Description: Remove WordPress update nag as not needed
*/
add_action('after_setup_theme','remove_core_updates');
function remove_core_updates()
{
if(! current_user_can('update_core')){return;}