Created
October 16, 2013 06:27
-
-
Save bhubbard/7003427 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Disable WPSEO Nag on Dev Server | |
* | |
*/ | |
function be_disable_wpseo_nag( $options ) { | |
if( strpos( site_url(), 'localhost' ) || strpos( site_url() ,'master-wp' ) ) | |
$options['ignore_blog_public_warning'] = 'ignore'; | |
return $options; | |
} | |
add_filter( 'option_wpseo', 'be_disable_wpseo_nag' ); | |
// Disable WPSEO columns on edit screen | |
add_filter( 'wpseo_use_page_analysis', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment