wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



http_allowed_safe_ports › WordPress Filter Hooks

Da5.9.0
Deprecaton/a
› apply_filters( 'http_allowed_safe_ports', array( 80, 443, 8080 )
Parametri: (3)
  • () allowed_ports Array of integers for valid ports. Default allowed ports are 80, 443, and 8080.
    Richiesto: Sì
  • () host Host name of the requested URL.
    Richiesto: Sì
  • () url Requested URL.
    Richiesto: Sì
Definito a:
Codex:

Controls the list of ports considered safe in HTTP API.

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




Sorgenti

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