-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from eduardovillao/feature/release-v2.2.1
Feature/release v2.2.1
- Loading branch information
Showing
13 changed files
with
388 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Extensiona for Elementor Form | ||
# Extensions for Elementor Form | ||
|
||
Extensions for Elementor Form adds powerful new actions and controls to the Elementor Pro Form widget, enhancing its default capabilities. | ||
|
||
|
@@ -32,6 +32,10 @@ We’d love to hear from you! [[email protected]](mailto:plugins@eduardov | |
|
||
## Changelog | ||
``` | ||
= 2.3 = | ||
* Changed: refactor code to support Pro version. | ||
* Changed: improve assets build process. | ||
= 2.2 = | ||
* Changed: code improvements. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
namespace EEF\Includes\Actions; | ||
|
||
if ( ! defined( 'ABSPATH' ) ) { | ||
exit; | ||
} | ||
|
||
class Register_Actions { | ||
/** | ||
* Actions | ||
*/ | ||
private array $actions; | ||
|
||
public function __construct( $actions ) { | ||
$this->actions = $actions; | ||
} | ||
|
||
public function set_hooks() : void { | ||
\add_action( 'elementor_pro/forms/actions/register', array( $this, 'register' ), -10 ); | ||
} | ||
|
||
/** | ||
* Register form acitons to be used after subumitting the form. | ||
* | ||
* @since 2.0 | ||
* @param ElementorPro\Modules\Forms\Registrars\Form_Actions_Registrar $form_actions_registrar | ||
*/ | ||
public function register( $form_actions_registrar ) : void { | ||
if ( empty( $this->actions ) ) { | ||
return; | ||
} | ||
|
||
foreach ( $this->actions as $action ) { | ||
include_once EEF_PLUGIN_PATH . $action['relative_path'] ?? ''; | ||
|
||
$class_name = 'EEF\Includes\Actions\\' . $action['class_name']; | ||
if ( class_exists( $class_name ) ) { | ||
$form_actions_registrar->register( new $class_name() ); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
includes/class-whatsapp-action.php → includes/actions/class-whatsapp-redirect.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.