首页 WordPress函数大全 get_network_by_path()

get_network_by_path()

2020-05-01 / 2072阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_network_by_path( string $domain, string $path, int|null $segments = null )

Retrieve the closest matching network for a domain and path.

描述

参数

$domain

(string)
(Required)
Domain to check.

$path

(string)
(Required)
Path to check.

$segments

(int|null)
(Optional)
Path segments to use. Defaults to null, or the full path.

Default value: null

返回

(WP_Network|false) Network object if successful. False when no network is found.

大家谈论
    我的见解