Skip to content

Instantly share code, notes, and snippets.

@jaredatch
Created April 4, 2014 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredatch/9976544 to your computer and use it in GitHub Desktop.
Save jaredatch/9976544 to your computer and use it in GitHub Desktop.
WebSynthesis tweaks
<?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