| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
namespace JFB_Modules\Verification\Events\Default_Process; |
| 5 |
|
| 6 |
// If this file is called directly, abort. |
| 7 |
if ( ! defined( 'WPINC' ) ) { |
| 8 |
die; |
| 9 |
} |
| 10 |
|
| 11 |
use Jet_Form_Builder\Actions\Events\Default_Process\Default_Process_Executor; |
| 12 |
use Jet_Form_Builder\Actions\Types\Base; |
| 13 |
use JFB_Modules\Verification\Actions\Verification; |
| 14 |
|
| 15 |
class Executor extends Default_Process_Executor { |
| 16 |
|
| 17 |
protected function is_valid_action( Base $action ): bool { |
| 18 |
return $this->get_event()->is_valid_action( $action ); |
| 19 |
} |
| 20 |
|
| 21 |
public function is_supported(): bool { |
| 22 |
return (bool) jet_fb_action_handler()->get_action( Verification::class ); |
| 23 |
} |
| 24 |
|
| 25 |
} |
| 26 |
|