Zum Hauptinhalt springen

Action: wu_network_pre_delete

Fires before a network is deleted.

Use this hook to tear down out-of-band resources linked to the network — for example the Multi-Tenancy addon's Multi_Tenancy_Integration uses it to drop the isolated MySQL database, MySQL user, and credential for customer-owned networks. Runs BEFORE the core delete_network() call so consumers can still look up related rows by network_id before WordPress wipes the network metadata.

Parameters

NameTypeDescription
$network_idintThe network ID being deleted.
$network\WP_Ultimo\Models\NetworkThe network model.
$delete_blogsboolWhether all sites in the network are also being deleted.

Since

  • 1.0.9

Source

Defined in inc/functions/network.php at line 148