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])
Afficher le fichier Open project: wpxtreme/wpdk

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

Create an instance of WPDKAjax class
public __construct ( ) : WPDKAjax
Résultat WPDKAjax

actions() protected méthode

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
Résultat array

add() public static méthode

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 méthode

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