Handler
Handler
Tags
Table of Contents
- $args : array<string, mixed>
- Arguments.
- $parsed_args : null|array<string, mixed>
- Parsed arguments.
- $url : string
- URL.
- __construct() : mixed
- Construct handler.
- __destruct() : mixed
- Destruct.
- args() : array<string, mixed>
- Arguments.
- http_request_args() : array<string, mixed>
- HTTP request arguments filter.
- method() : string
- Method.
- url() : string
- URL.
Properties
$args
Arguments.
private
array<string, mixed>
$args
$parsed_args
Parsed arguments.
private
null|array<string, mixed>
$parsed_args
$url
URL.
private
string
$url
Methods
__construct()
Construct handler.
public
__construct(string $url[, array<string, mixed> $args = array() ]) : mixed
Parameters
- $url : string
-
URL.
- $args : array<string, mixed> = array()
-
Arguments.
Return values
mixed —__destruct()
Destruct.
public
__destruct() : mixed
Tags
Return values
mixed —args()
Arguments.
public
args() : array<string, mixed>
Return values
array<string, mixed> —http_request_args()
HTTP request arguments filter.
public
http_request_args(array<string, mixed> $parsed_args) : array<string, mixed>
In version 1.0.0
we removed the filter http_request_args
in this filter callback:
\remove_filter( 'http_request_args', array( $this, 'http_request_args' ), 1000 );
This resulted in 500
errors if the Query Monitor plugin was activated, probably
due to the HTTP log functionality of this plugin. Therefore, we moved the removal
of this filter to the __destruct()
function, this also ties in well with adding
the filter in the __construct()
function.
Parameters
- $parsed_args : array<string, mixed>
-
Parsed arguments.
Tags
Return values
array<string, mixed> —method()
Method.
public
method() : string
Return values
string —url()
URL.
public
url() : string