Uma área de pesquisa sobre o WordPress para devs e autores do tema

domain_exists ›

apply_filters( 'domain_exists', $result, $domain, $path, $network_id )
Parâmetros: (4)
  • (int|null) $result The site ID if the site name exists, null otherwise.
    Required: Yes
  • (string) $domain Domain to be checked.
    Required: Yes
  • (string) $path Path to be checked.
    Required: Yes
  • (int) $network_id Network ID. Relevant only on multi-network installations.
    Required: Yes
Definido em:

Filters whether a site name is taken.

The name is the site's subdomain or the site's subdirectory path depending on the network settings.


return apply_filters( 'domain_exists', $result, $domain, $path, $network_id );