On this page
apply_filters( 'use_streams_transport', bool $use_class, array $args )
Filters whether streams can be used as a transport for retrieving a URL.
Parameters
$use_classbool-
Whether the class can be used. Default true.
$argsarray-
Request arguments.
Source
File: wp-includes/class-wp-http-streams.php. View all references
return apply_filters( 'use_streams_transport', true, $args );
Related
Used By
| Used By | Description |
|---|---|
| WP_Http_Streams::test() wp-includes/class-wp-http-streams.php | Determines whether this class can be used for retrieving a URL. |
Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/use_streams_transport