You appear to be a bot. Output may be restricted
Description
Constructor.
Initialize a new Jetpack IXR client instance.
Usage
Jetpack_IXR_Client::__construct( $args, $path, $port, $timeout );
Parameters
- $args
- ( array ) optional – Jetpack args, used for the remote requests.
- $path
- ( string|bool ) optional – Path to perform the reuqest to.
- $port
- ( int ) optional default: 80 – Port number.
- $timeout
- ( int ) optional default: 15 – The connection timeout, in seconds.
Returns
void
Source
File name: jetpack/vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php
Lines:
1 to 17 of 17
public function __construct( $args = array(), $path = false, $port = 80, $timeout = 15 ) { $connection = new Manager(); $defaults = array( 'url' => $connection->xmlrpc_api_url(), 'user_id' => 0, 'headers' => array(), ); $args = wp_parse_args( $args, $defaults ); $args['headers'] = array_merge( array( 'Content-Type' => 'text/xml' ), (array) $args['headers'] ); $this->jetpack_args = $args; $this->IXR_Client( $args['url'], $path, $port, $timeout ); }