Seguridad

Bloquear el Desactivar y Eliminar Plugins de WordPress

2 Genial hay muchos Likes :D
add_filter( 'plugin_action_links', 'disable_plugin_deactivation', 10, 4 );
function disable_plugin_deactivation( $actions, $plugin_file, $plugin_data, $context ) {

if ( array_key_exists( 'deactivate', $actions ) && in_array( $plugin_file, array(
'woocommerce/woocommerce.php'
)))
unset( $actions['deactivate'] );
return $actions;
}
Volver al listado