_upgrade_440_force_deactivate_incompatible_plugins()
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() upgrade 440 force deactivate incompatible plugins code WP 6.8
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 ); } }