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

Remove unused class property

parent 8c304943
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ class CFAFA_ACFE_Form_Action_Base extends acfe_module_form_action {
* @access public
* @var string
*/
public $action_name = '';
public $name = '';
/**
* Form Action Label.
......@@ -107,7 +107,7 @@ class CFAFA_ACFE_Form_Action_Base extends acfe_module_form_action {
* @param array $form The array of Form data.
* @param array $action The array of Action data.
*/
$filter = 'acfe/form/v3/skip/' . $this->action_name;
$filter = 'acfe/form/v3/skip/' . $this->name;
$prepare = apply_filters( $filter, $prepare, $form, $action );
$prepare = apply_filters( $filter . '/form=' . $form_name, $prepare, $form, $action );
if ( ! empty( $action['name'] ) ) {
......
......@@ -46,15 +46,6 @@ class CFAFA_ACFE_Form_Action_Email extends CFAFA_ACFE_Form_Action_Base {
*/
public $name = 'email_cfafa';
/**
* Form Action Name.
*
* @since 0.2.0
* @access public
* @var string
*/
public $action_name = 'email_cfafa';
/**
* Field Key Prefix.
*
......@@ -822,7 +813,7 @@ class CFAFA_ACFE_Form_Action_Email extends CFAFA_ACFE_Form_Action_Base {
* @param array $form The array of Form data.
* @param array $action The array of Action data.
*/
$filter = 'acfe/form/v3/submit/' . $this->action_name . '/email_args';
$filter = 'acfe/form/v3/submit/' . $this->name . '/email_args';
$args = apply_filters( $filter, $args, $form, $action );
$args = apply_filters( $filter . '/form=' . $form_name, $args, $form, $action );
if ( ! empty( $action['name'] ) ) {
......
......@@ -46,15 +46,6 @@ class CFAFA_ACFE_Form_Action_Product extends CFAFA_ACFE_Form_Action_Base {
*/
public $name = 'woo_cfafa_product';
/**
* Form Action Name.
*
* @since 0.2.0
* @access public
* @var string
*/
public $action_name = 'woo_cfafa_product';
/**
* Field Key Prefix.
*
......
......@@ -46,15 +46,6 @@ class CFAFA_ACFE_Form_Action_Redirect extends CFAFA_ACFE_Form_Action_Base {
*/
public $name = 'redirect_cfafa';
/**
* Form Action Name.
*
* @since 0.2.0
* @access public
* @var string
*/
public $action_name = 'redirect_cfafa';
/**
* Constructor.
*
......@@ -264,7 +255,7 @@ class CFAFA_ACFE_Form_Action_Redirect extends CFAFA_ACFE_Form_Action_Base {
* @param array $form The array of Form data.
* @param array $action The array of Action data.
*/
$filter = 'acfe/form/v3/submit/' . $this->action_name . '/url';
$filter = 'acfe/form/v3/submit/' . $this->name . '/url';
$url = apply_filters( $filter, $url, $form, $action );
$url = apply_filters( $filter . '/form=' . $form_name, $url, $form, $action );
if ( ! empty( $action['name'] ) ) {
......
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