Class Endpoint
Class Endpoint
Namespace: Varunsridharan\WordPress
Package: Varunsridharan\WordPress
Author: Varun Sridharan varunsridharan23@gmail.com
Since: 1.0
Located at src/Endpoint.php
Package: Varunsridharan\WordPress
Author: Varun Sridharan varunsridharan23@gmail.com
Since: 1.0
Located at src/Endpoint.php
public
|
|
public
|
|
public
|
#
parse_request( $wp )
Parses Request And Triggers Callback / Action. Based On the $callback Arg when using add_endpoint() |
public
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
#
add_endpoint( string $endpoint = '', integer $endpoint_type = \EP_ROOT, array|string $callback = array() )
Adds Custom Endpoints To Endpoints Array. |
public
|
|
public
|
|
public
array
|
public
string
|
$version
Version |
#
'1.5'
|
protected
array
|
$rewrite_endpoint
Rewrite_endpoint |
#
array()
|
protected
array
|
$rewrite_rule
Rewrite_rule |
#
array()
|
protected
array
|
$rewrite_tag
Rewrite_tag |
#
array()
|
protected
string
|
$rewrite_prefix
|
#
'wp_router'
|
protected
string
|
$parameter_pattern
|
#
'/{([\w\d]+)}/'
|
protected
string
|
$value_pattern
|
#
'(?P<$1>[^/]+)'
|
protected
string
|
$value_pattern_replace
|
#
'([^\/]+)'
|