Removes unused code

This commit is contained in:
Vlad
2017-12-09 19:27:21 -05:00
parent 59d09866a1
commit 1f9c956637

View File

@@ -150,32 +150,4 @@ EOL;
true
);
}
// TODO: extract this method into an Initializer
// - the "ajax" part might probably be useless
// - the "post" (non-ajax) part needs to be redone properly
function setupActions() {
// ajax requests
add_action(
'wp_ajax_mailpoet_form_subscribe',
'mailpoet_form_subscribe'
);
add_action(
'wp_ajax_nopriv_mailpoet_form_subscribe',
'mailpoet_form_subscribe'
);
// post request
add_action(
'admin_post_nopriv_mailpoet_form_subscribe',
'mailpoet_form_subscribe'
);
add_action(
'admin_post_mailpoet_form_subscribe',
'mailpoet_form_subscribe'
);
add_action(
'init',
'mailpoet_form_subscribe'
);
}
}