wphooks.info - use_streams_transport

use_streams_transport

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/class-wp-http-streams.php:
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
		}

		/**
		 * Filters whether streams can be used as a transport for retrieving a URL.
		 *
		 * @since 2.7.0
		 *
		 * @param bool  $use_class Whether the class can be used. Default true.
		 * @param array $args      Request arguments.
		 */
		return apply_filters( 'use_streams_transport', true, $args );
	}
}

/**
 * Deprecated HTTP Transport method which used fsockopen.
 *
 * This class is not used, and is included for backward compatibility only.
 * All code should make use of WP_Http directly through its API.
 *