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)
  • () allowed_ports Array of integers for valid ports. Default allowed ports are 80, 443, and 8080.
    Requis: Oui
  • () host Host name of the requested URL.
    Requis: Oui
  • () 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 );