Esempio n. 1
0
 public static function parse_standalone_request()
 {
     $plugin = FrmAppHelper::get_param('plugin');
     $action = isset($_REQUEST['frm_action']) ? 'frm_action' : 'action';
     $action = FrmAppHelper::get_param($action);
     $controller = FrmAppHelper::get_param('controller');
     if (!empty($plugin) and $plugin == 'formidable' and !empty($controller)) {
         _deprecated_function(__FUNCTION__, '1.07.02', 'wp_ajax_nopriv()');
         if ($controller == 'forms') {
             FrmFormsController::preview(FrmAppHelper::get_param('form'));
         } else {
             do_action('frm_standalone_route', $controller, $action);
         }
         do_action('frm_ajax_' . $controller . '_' . $action);
         die;
     }
 }