• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Jetpack a2z

Jetpack a2z

Jetpack a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Jetpack_IXR_Client::__construct() – Constructor.

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 );
  }
 

 View on GitHub View on Trac

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Related

Published: 27 November 2019 | Last updated: 10 December 2020

Primary Sidebar

Information

Function name: Jetpack_IXR_Client::__construct
Class ref: Jetpack_IXR_Client
Plugin ref: Jetpack
Version: 9.2
Sourcefile: vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php
File ref: vendor/automattic/jetpack-connection/legacy/class-jetpack-ixr-client.php
Deprecated?: No
API Letters: C,I,J

Footer

Jetpack a2z
Jetpack a2z
Jetpack a2z
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  jetpack.wp-a2z.org
© Copyright Jetpack a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites