WP HOOKS
akcjaod 6.9.0

before_populate_network

Args 6Plik wp-admin/includes/schema.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires before a network is populated.

Parametry

ParametrTypOpis
$network_idintID of network to populate.
$domainstringThe domain name for the network.
$emailstringEmail address for the network administrator.
$site_namestringThe name of the network.
$pathstringThe path to append to the network's domain name.
$subdomain_installboolWhether the network is a subdomain installation or a subdirectory installation.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'before_populate_network', 'twoja_funkcja', 10, 6 );

function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5, $param_6) {
	// Twój kod
}

Popularne w tej kategorii