WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 1146 | * @since 6.9.0 |
| 1147 | * |
| 1148 | * @param int $network_id ID of network created. |
| 1149 | * @param string $domain The domain name for the network. |
| 1150 | * @param string $email Email address for the network administrator. |
| 1151 | * @param string $site_name The name of the network. |
| 1152 | * @param string $path The path to append to the network's domain name. |
| 1153 | * @param bool $subdomain_install Whether the network is a subdomain installation or a subdirectory installation. |
| 1154 | */ |
| 1155 | do_action( 'after_upgrade_to_multisite', $network_id, $domain, $email, $site_name, $path, $subdomain_install ); |
| 1156 | |
| 1157 | if ( ! $subdomain_install ) { |
| 1158 | return true; |
| 1159 | } |
| 1160 | |
| 1161 | $vhost_ok = false; |
| 1162 | $errstr = ''; |
| 1163 | $hostname = substr( md5( time() ), 0, 6 ) . '.' . $domain; // Very random hostname! |
| 1164 | $page = wp_remote_get( |