WordPress at Your Fingertips
function is not described

_upgrade_440_force_deactivate_incompatible_plugins() WP 4.4.0

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

null. Nothing.

Usage

_upgrade_440_force_deactivate_incompatible_plugins();

Changelog

Since 4.4.0 Introduced.

Code of _upgrade_440_force_deactivate_incompatible_plugins() WP 5.8.2

function _upgrade_440_force_deactivate_incompatible_plugins() {
	if ( defined( 'REST_API_VERSION' ) && version_compare( REST_API_VERSION, '2.0-beta4', '<=' ) ) {
		deactivate_plugins( array( 'rest-api/plugin.php' ), true );
	}
}