Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



domain_exists ›

Seit3.5.0
Veraltetn/v
apply_filters( 'domain_exists', $result, $domain, $path, $network_id )
Parameter: (4)
  • (int|null) $result The site ID if the site name exists, null otherwise.
    Erforderlich: Ja
  • (string) $domain Domain to be checked.
    Erforderlich: Ja
  • (string) $path Path to be checked.
    Erforderlich: Ja
  • (int) $network_id Network ID. Relevant only on multi-network installations.
    Erforderlich: Ja
Definiert in:
Codex:

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.





Quellcode

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