_upgrade_440_force_deactivate_incompatible_plugins()WP 4.4.0

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Return

null. Nothing (null).

Usage

_upgrade_440_force_deactivate_incompatible_plugins();

Changelog

Since 4.4.0 Introduced.

_upgrade_440_force_deactivate_incompatible_plugins() code WP 6.4.3

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 );
	}
}