A WordPress-centric search engine for devs and theme authors



kses_allowed_protocols ›

Since3.0.0
Deprecatedn/a
apply_filters( 'kses_allowed_protocols', $protocols )
Parameters:
  • (array) $protocols Array of allowed protocols e.g. 'http', 'ftp', 'tel', and more.
    Required: Yes
Defined at:
Codex:

Filters the list of protocols allowed in HTML attributes.





Source

$protocols = array_unique( (array) apply_filters( 'kses_allowed_protocols', $protocols ) );