# jetformbuilder/3.6.6/compatibility/litespeed/litespeed.php

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

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/compatibility/litespeed/litespeed.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/raw/compatibility/litespeed/litespeed.php
- Modified: 2026-05-27T10:17:20+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/compatibility/litespeed/litespeed.php#L10-L20`.

```php
<?php


namespace JFB_Compatibility\Litespeed;

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

use JFB_Modules\Security\Wp_Nonce;
use JFB_Components\Module\Base_Module_It;

class Litespeed implements Base_Module_It {

	public function rep_item_id() {
		return 'litespeed';
	}

	public function condition(): bool {
		if ( ! defined( 'LSCWP_V' ) ) {
			return false;
		}

		return (bool) apply_filters( 'litespeed_esi_status', false );
	}

	public function init_hooks() {
		add_filter(
			'jet-form-builder/after-start-form',
			array( $this, 'on_render_form' ),
			9
		);
	}

	public function remove_hooks() {
		remove_filter(
			'jet-form-builder/after-start-form',
			array( $this, 'on_render_form' ),
			9
		);
	}

	public function on_render_form( string $html ): string {
		do_action( 'litespeed_nonce', Wp_Nonce\Module::NONCE_ACTION_PREF . '*' );

		$this->remove_hooks();

		return $html;
	}
}

```
