ms_network_not_found

动作钩子


do_action( 'ms_network_not_found', $domain, $path )
参数
  • (string)
    $domain
    The domain used to search for a network.
    Required:
  • (string)
    $path
    The path used to search for a path.
    Required:
定义位置
  • wp-includes/ms-load.php
    , line 355
引入
4.4.0
弃用

Fires when a network cannot be found based on the requested domain and path.

At the time of this action, the only recourse is to redirect somewhere
and exit. If you want to declare a particular network, do so earlier.

do_action( 'ms_network_not_found', $domain, $path );