\MainWP\DashboardMainWP_Post_Base_Handler

Class MainWP_Post_Base_Handler

Summary

Methods
Properties
Constants
secure_request()
check_security()
add_action()
add_security_nonce()
get_security_nonces()
No public properties found
No constants found
init()
$security_nonces
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.

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

Method check_security()

Check security request.

Parameters

string $action

Action to perform.

string $query_arg

Query argument.

Returns

boolean —

true or false

add_action()

add_action(string  $action, string  $callback) 

Method add_action()

Add ajax action.

Parameters

string $action

Action to perform.

string $callback

Callback to perform.

add_security_nonce()

add_security_nonce(string  $action) 

Method add_security_nonce()

Add security nonce.

Parameters

string $action

Action to perform.

get_security_nonces()

get_security_nonces() : self

Return the security nonces.

Returns

self —

$security_nonces.

init()

init() : void

Method init()

Force Extending class to define this method.