2020-05-01 / 4902阅 / 悠然
Get a blog’s numeric ID from its URL.
On a subdirectory installation like example.com/blog1/, $domain will be the root ‘example.com’ and $path the subdirectory ‘/blog1/’. With subdomains like blog1.example.com, $domain is ‘blog1.example.com’ and $path is ‘/’.
(string)
(Required)
(string)
(Optional)
Not required for subdomain installations.
Default value: '/'
(int) 0 if no blog found, otherwise the ID of the matching blog