Created
April 4, 2014 15:05
-
-
Save jaredatch/9976544 to your computer and use it in GitHub Desktop.
WebSynthesis tweaks
This file contains 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
<?php | |
// Synthesis tweaks. Drop in mu-plugins. | |
/** | |
* Disable Inactive Plugins Nag on Synthesis | |
* | |
* @since 1.0.0 | |
*/ | |
function ea_disable_inactive_plugins_nag() { | |
if ( method_exists( 'Synthesis_Software_Monitor', 'inactive_plugin_notifications' ) ) | |
remove_action( 'admin_notices', array( 'Synthesis_Software_Monitor', 'inactive_plugin_notifications' ) ); | |
} | |
add_action( 'plugins_loaded', 'ea_disable_inactive_plugins_nag' ); | |
/** | |
* Disable Scribe | |
* | |
* @since 1.0.0 | |
*/ | |
function ea_disable_scribe() { | |
class Scribe_SEO {} | |
} | |
add_action( 'plugins_loaded', 'ea_disable_scribe', 4 ); | |
/** | |
* Allow Core Updates | |
* | |
* @since 1.0.0 | |
*/ | |
function ea_enable_core_updates() { | |
remove_filter( 'pre_site_transient_update_core', 'ra_no_update_check_30' ); | |
} | |
add_action( 'plugins_loaded', 'ea_enable_core_updates' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment