Test that Premium hooks are executed [PREMIUM-2]

This commit is contained in:
Alexey Stoletniy
2017-03-21 21:36:36 +03:00
parent d686f75222
commit 32097b4512
10 changed files with 263 additions and 11 deletions

View File

@@ -3,6 +3,7 @@ namespace MailPoet\API;
use MailPoet\Util\Helpers;
use MailPoet\Util\Security;
use MailPoet\WP\Hooks;
if(!defined('ABSPATH')) exit;
@@ -40,7 +41,7 @@ class API {
}
function setupAjax() {
do_action('mailpoet_api_setup', array($this));
Hooks::doAction('mailpoet_api_setup', array($this));
$this->getRequestData($_POST);