Skip to content
Snippets Groups Projects
Commit 859ad188 authored by Christian Wach's avatar Christian Wach :soccer:
Browse files

Enable new ACFE action in redirect action

parent 0013aaef
No related branches found
No related tags found
No related merge requests found
...@@ -148,18 +148,21 @@ class CFAFA_ACFE_Form_Action_Redirect extends CFAFA_ACFE_Form_Action_Base { ...@@ -148,18 +148,21 @@ class CFAFA_ACFE_Form_Action_Redirect extends CFAFA_ACFE_Form_Action_Base {
} }
/** /**
* Fire the ACF Extended 0.8.x action. * Fires the ACF Extended 0.9.x success action.
* *
* This is to allow any plugins that perform administrative tasks (e.g. saving * This is to allow any plugins that perform administrative tasks (e.g. saving
* form submissions) to act before the redirect. * form submissions) to act before the redirect.
* *
* Note that `acfe/form/submit_form` cannot be fired here because doing so
* causes recursive calls to `make_action()`.
*
* @see https://develop.tadpole.cc/plugins/submission-logs-for-acfe * @see https://develop.tadpole.cc/plugins/submission-logs-for-acfe
* *
* @since 0.2.0 * @since 0.2.0
* *
* @param array $form The array of Form data. * @param array $form The array of Form data.
do_action( 'acfe/form/submit_form', $form );
*/ */
do_action( 'acfe/form/submit_success', $form );
// Do the redirect. // Do the redirect.
wp_safe_redirect( $redirect_data['redirect_url'] ); wp_safe_redirect( $redirect_data['redirect_url'] );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment