\MainWP\DashboardMainWP_Post_Base_Handler

Class MainWP_Post_Base_Handler

Summary

Methods
Properties
Constants
secure_request()
check_security()
add_action()
add_action_nonce()
create_security_nonces()
No public properties found
No constants found
init()
$security_nonces
$security_names
N/A
No private methods found
No private properties found
N/A

Properties

$security_nonces

$security_nonces : string

Protected static variable to hold security nounces.

Type

string — Security nonce.

$security_names

$security_names : string

Protected static variable to hold security nounces.

Type

string — Security nonce.

Methods

secure_request()

secure_request(string  $action = '', string  $query_arg = 'security') 

Method secure_request()

Add security check to request parameter

Parameters

string $action

Action to perform.

string $query_arg

Query argument.

check_security()

check_security(string  $action = -1, string  $query_arg = 'security', boolean  $out_die = true) : boolean

Method check_security()

Check security request.

Parameters

string $action

Action to perform.

string $query_arg

Query argument.

boolean $out_die

return or exit.

Returns

boolean —

true or false

add_action()

add_action(string  $action, string  $callback, integer  $priority = 10, integer  $accepted = 2) 

Method add_action()

Add ajax action.

Parameters

string $action

Action to perform.

string $callback

Callback to perform.

integer $priority

priority aciton.

integer $accepted

number args.

add_action_nonce()

add_action_nonce(string  $action) 

Method add_action_nonce()

Add security nonce.

Parameters

string $action

Action to perform.

create_security_nonces()

create_security_nonces() : self

Create the security nonces.

Returns

self —

$security_nonces.

init()

init() : void

Method init()

Force Extending class to define this method.