PHP Class WPDKAjax

You will use this class to extends a your own Ajax gateway class. class YourClass extends WPDKAjax { public function actions() { return array(); } } In this way you can access to registerActions method
Since: 0.7.5
Author: =undo= ([email protected])
Datei anzeigen Open project: wpxtreme/wpdk

Public Methods

Method Description
__construct ( ) : WPDKAjax Create an instance of WPDKAjax class
add ( string $method, callback $callable, boolean $nopriv = false ) Useful static method to add an action ajax hook
registerActions ( ) Register the allow ajax method in WordPress environment

Protected Methods

Method Description
actions ( ) : array Return the array list with allowed method. This is a Key value pairs array with value for not signin user ajax method allowed.

Method Details

__construct() public method

Create an instance of WPDKAjax class
public __construct ( ) : WPDKAjax
return WPDKAjax

actions() protected method

Return the array list with allowed method. This is a Key value pairs array with value for not signin user ajax method allowed.
protected actions ( ) : array
return array

add() public static method

Useful static method to add an action ajax hook
Since: 1.3.0
public static add ( string $method, callback $callable, boolean $nopriv = false )
$method string Method name, eg: wpxkk_action_replace
$callable callback A callable function/method hook
$nopriv boolean Set to TRUE for enable no privilege

registerActions() public method

Register the allow ajax method in WordPress environment
public registerActions ( )