wpseo_deactivate()
Run single site / network-wide de-activation of the plugin.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wpseo_deactivate( $networkwide );
- $networkwide(true|false)
- Whether the plugin is being de-activated network-wide.
По умолчанию: false
Код wpseo_deactivate() wpseo deactivate Yoast 23.6
function wpseo_deactivate( $networkwide = false ) { if ( ! is_multisite() || ! $networkwide ) { _wpseo_deactivate(); } else { /* Multi-site network activation - de-activate the plugin for all blogs. */ wpseo_network_activate_deactivate( false ); } }