protected function setArgs( $args ) {
		// Check for an API key being stored.
		if ( $this->getKey() ) {
			$args = wp_parse_args( $args, array( 'key' => $this->getKey() ) );
		}

		// Check for a site hash being stored.
		if ( $this->getSiteHash() ) {
			$args = wp_parse_args( $args, array( 'site_hash' => $this->getSiteHash() ) );
		}

		return $this->args = array(
			'timeout' => 15, // Default timeout is 5 seconds, change to 15.
			'body' => $args
		);
	}
protected function setArgs( $args ) {
		// Check for an API key being stored.
		if ( $this->getKey() ) {
			$args = wp_parse_args( $args, array( 'key' => $this->getKey() ) );
		}

		// Check for a site hash being stored.
		if ( $this->getSiteHash() ) {
			$args = wp_parse_args( $args, array( 'site_hash' => $this->getSiteHash() ) );
		}

		return $this->args = array(
			'timeout' => 15, // Default timeout is 5 seconds, change to 15.
			'body' => $args
		);
	}
protected function setArgs ( $ args ) { // Check for an API key being stored. if ( $ this -> getKey ( ) ) { $ args = wp_parse_args ( $ args , array ( 'key' => $ this -> getKey ( ) ) ) ; } // Check for a site hash being stored. if ( $ this -> getSiteHash ( ) ) { $ args = wp_parse_args ( $ args , array ( 'site_hash' => $ this -> getSiteHash ( ) ) ) ; } return $ this -> args = array ( 'timeout' => 15 , // Default timeout is 5 seconds, change to 15. 'body' => $ args ) ; }
Sets the args class property.

These are the arguments being passed for the API call parameters.

@since  1.0.0

@param  array $args API call arguments.

@return array $args The args class property.
Sets the args class property .