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

Codestyle on filter params

parent ce8e0e09
No related branches found
No related tags found
No related merge requests found
...@@ -162,10 +162,10 @@ class CFAFA_Form_Action_Base { ...@@ -162,10 +162,10 @@ class CFAFA_Form_Action_Base {
* *
* @since 0.1 * @since 0.1
* *
* @param bool $prepare True by default so that the Form Action goes ahead. * @param bool $prepare True by default so that the Form Action goes ahead.
* @param array $form The array of Form data. * @param array $form The array of Form data.
* @param integer $current_post_id The ID of the Post from which the Form has been submitted. * @param integer $current_post_id The ID of the Post from which the Form has been submitted.
* @param string $action The customised name of the Form Action. * @param string $action The customised name of the Form Action.
*/ */
$filter = 'acfe/form/prepare/' . $this->action_name; $filter = 'acfe/form/prepare/' . $this->action_name;
$prepare = apply_filters( $filter, $prepare, $form, $current_post_id, $action ); $prepare = apply_filters( $filter, $prepare, $form, $current_post_id, $action );
......
...@@ -625,10 +625,10 @@ class CFAFA_Form_Action_Email extends CFAFA_Form_Action_Base { ...@@ -625,10 +625,10 @@ class CFAFA_Form_Action_Email extends CFAFA_Form_Action_Base {
* *
* @since 0.1 * @since 0.1
* *
* @param bool $args The array of arguments. * @param bool $args The array of arguments.
* @param array $form The array of Form data. * @param array $form The array of Form data.
* @param integer $current_post_id The ID of the Post from which the Form has been submitted. * @param integer $current_post_id The ID of the Post from which the Form has been submitted.
* @param string $action The customised name of the Form Action. * @param string $action The customised name of the Form Action.
*/ */
$filter = 'acfe/form/submit/' . $this->action_name . '/email_args'; $filter = 'acfe/form/submit/' . $this->action_name . '/email_args';
$args = apply_filters( $filter, $args, $form, $current_post_id, $action ); $args = apply_filters( $filter, $args, $form, $current_post_id, $action );
......
...@@ -143,7 +143,7 @@ class CFAFA_Form_Action_Redirect extends CFAFA_Form_Action_Base { ...@@ -143,7 +143,7 @@ class CFAFA_Form_Action_Redirect extends CFAFA_Form_Action_Base {
* *
* @since 0.1.1 * @since 0.1.1
* *
* @param array $form The array of Form data. * @param array $form The array of Form data.
* @param integer $current_post_id The ID of the Post from which the Form has been submitted. * @param integer $current_post_id The ID of the Post from which the Form has been submitted.
*/ */
do_action( 'acfe/form/submit', $form, $current_post_id ); do_action( 'acfe/form/submit', $form, $current_post_id );
...@@ -231,10 +231,10 @@ class CFAFA_Form_Action_Redirect extends CFAFA_Form_Action_Base { ...@@ -231,10 +231,10 @@ class CFAFA_Form_Action_Redirect extends CFAFA_Form_Action_Base {
* *
* @since 0.1 * @since 0.1
* *
* @param string $url The Redirect URL. * @param string $url The Redirect URL.
* @param array $form The array of Form data. * @param array $form The array of Form data.
* @param integer $current_post_id The ID of the Post from which the Form has been submitted. * @param integer $current_post_id The ID of the Post from which the Form has been submitted.
* @param string $action The customised name of the Form Action. * @param string $action The customised name of the Form Action.
*/ */
$filter = 'acfe/form/submit/' . $this->action_name . '/url'; $filter = 'acfe/form/submit/' . $this->action_name . '/url';
$url = apply_filters( $filter, $url, $form, $current_post_id, $action ); $url = apply_filters( $filter, $url, $form, $current_post_id, $action );
......
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