# jetformbuilder/3.6.6/modules/verification/events/verification-failed/executor.php

JetFormBuilder — Dynamic Blocks Form Builder, version 3.6.6. 41 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/verification/events/verification-failed/executor.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/raw/modules/verification/events/verification-failed/executor.php
- Modified: 2023-11-21T13:04:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/verification/events/verification-failed/executor.php#L10-L20`.

```php
<?php


namespace JFB_Modules\Verification\Events\Verification_Failed;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

use Jet_Form_Builder\Actions\Events\Base_Executor;
use Jet_Form_Builder\Actions\Types\Base;
use JFB_Modules\Verification\Actions\Verification;

class Executor extends Base_Executor {

	public function is_supported(): bool {
		return true;
	}

	public function before_execute() {
		parent::before_execute();

		$verification = jet_fb_action_handler()->get_action( Verification::class );

		if ( ! is_a( $verification, Verification::class ) ) {
			return;
		}

		$failed_page = absint( $verification->settings['failed_page'] ?? 0 );
		$url         = get_permalink( $failed_page );

		if ( ! $url ) {
			return;
		}

		jet_fb_action_handler()->response_data['redirect'] = $url;
	}

}

```
