This is an old revision of the document!
/** * DISABLE UPDATES OF SPECIFIC PLUGINS */ // Hier listen, welche Plugins keine Update-Meldungen // an den User ausgeben sollen function filter_plugin_updates( $value ) { if( is_object( $value ) ) { // Deaktivieren von "Your Plugin" und "Another Plugin" unset( $value->response['your-plugin/your-plugin.php'] ); unset( $value->response['another-plugianother-plugin.php'] ); } return $value; } add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' ); // Hier eine Erinnerungs-Meldung auf der Übersicht der // Update-Seiten, dass der Admin erinnert wird, welche // Plugins nicht aktualisieren und warum function updates_disabled_reminder() { $current_screen = get_current_screen(); $message = " <div class=\"notice\"> <p> Updates der Plugins <strong> "Your Plugin"</strong> & <strong> "Another Plugin"</strong> wurden deaktiviert, da neue Versionen nicht kompatibel sind mit dem Theme. </p> </div>"; if( $current_screen->base == "update-core" ) { echo $message; } if( $current_screen->base == "plugins" ) { echo $message; } } add_action( 'admin_notices', 'updates_disabled_reminder' );