Class Ajaxer
Class Ajaxer
Abstract
Namespace: Varunsridharan\WordPress
Package: Varunsridharan\WordPress
Author: Varun Sridharan varunsridharan23@gmail.com
Since: 1.0
Located at src/Ajaxer.php
Namespace: Varunsridharan\WordPress
Package: Varunsridharan\WordPress
Author: Varun Sridharan varunsridharan23@gmail.com
Since: 1.0
Located at src/Ajaxer.php
public
|
|
final protected
string
|
|
final public
|
|
final protected
string
|
#
extract_action_slug( $action )
Extracts Action Without Prefix / Surfix ($this->action_prefix | $this->action_surfix) |
protected
|
|
final public
|
|
protected
string
|
#
request_type( string|array $type = null )
Checks / Returns the type of request method for the current request. |
public
string|boolean|boolean
|
|
public
string|boolean|boolean
|
|
protected
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean|mixed
|
|
public
boolean|mixed
|
|
public
boolean|mixed
|
|
protected
array
|
|
protected
array
|
|
public
|
|
public
|
|
protected
boolean|mixed
|
|
public
|
|
public
|
|
public
boolean|mixed
|
#
validate_post( string $key, string|boolean $error_title = false, string|boolean $error_message = false )
|
public
boolean|mixed
|
#
validate_get( string $key, string|boolean $error_title = false, string|boolean $error_message = false )
|
public
boolean|mixed
|
#
validate_request( string $key, string|boolean $error_title = false, string|boolean $error_message = false )
|
public
boolean
|
protected
string
|
$action_prefix
Ajax Action Prefix |
#
''
|
protected
string
|
$action_surfix
Ajax Action Surfix |
#
''
|
protected
string
|
$action
Action Name provide value if all ajax requests runs in a single action key. |
#
''
|
protected
array
|
$actions
Array of ajax actions |
#
array()
|
protected
boolean
|
$is_single
Set to true if plugin's ajax runs in a single action OR Set a custom key so convert plugin-slug=ajax-action into your-key=ajax-action |
#
false
|