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



http_allowed_safe_ports › Les Filtres WordPress

Depuis5.9.0
Dépréciéen/a
apply_filters( 'http_allowed_safe_ports', array( 80, 443, 8080 )
Paramètres: (3)
  • (int[]) $allowed_ports Array of integers for valid ports.
    Requis: Oui
  • (string) $host Host name of the requested URL.
    Requis: Oui
  • (string) $url Requested URL.
    Requis: Oui
Défini(e) dans:
Codex:

Controls the list of ports considered safe in HTTP API.

Allows to change and allow external requests for the HTTP request.





Source

$allowed_ports = apply_filters( 'http_allowed_safe_ports', array( 80, 443, 8080 ), $host, $url );