PHP Класс 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
С версии: 0.7.5
Автор: =undo= ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
__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

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

Create an instance of WPDKAjax class
public __construct ( ) : WPDKAjax
Результат WPDKAjax

actions() защищенный Метод

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
Результат array

add() публичный статический Метод

Useful static method to add an action ajax hook
С версии: 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() публичный Метод

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