wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



domain_exists › Les Filtres WordPress

Depuis3.5.0
Dépréciéen/a
apply_filters( 'domain_exists', $result, $domain, $path, $network_id )
Paramètres: (4)
  • (int|null) $result The site ID if the site name exists, null otherwise.
    Requis: Oui
  • (string) $domain Domain to be checked.
    Requis: Oui
  • (string) $path Path to be checked.
    Requis: Oui
  • (int) $network_id Network ID. Only relevant on multi-network installations.
    Requis: Oui
Défini(e) dans:
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.





Source

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