Ejemplo n.º 1
0
 function action_AdminActionEditedtag()
 {
     if (am4Request::getWord('taxonomy') !== 'category') {
         return;
     }
     am4PluginsManager::runController('am4Protection_category');
 }
Ejemplo n.º 2
0
 function action_AdminFooter()
 {
     $screen = get_current_screen();
     if (($screen->id == 'edit-post' || $screen->id == 'edit-page') && !am4Request::getWord('action')) {
         am4PluginsManager::runController('am4Protection_bulk');
     }
 }
Ejemplo n.º 3
0
 function dispatch($isAjax = 0, $directAction = '')
 {
     $action = $directAction ? $directAction : am4Request::getWord($this->_action_field);
     if (!$action) {
         $action = $this->_default_action;
     }
     $method = $isAjax ? 'doAjax' . ucfirst($action) : 'do' . ucfirst($action);
     if (method_exists($this, $method)) {
         call_user_func(array($this, $method));
     } else {
         throw new Exception('Action not defined:' . $action);
     }
 }