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])
파일 보기 프로젝트 열기: wpxtreme/wpdk

공개 메소드들

메소드 설명
__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 ( )