class-avcf-abilities-formidable-pro.php
1 month ago
class-avcf-abilities-formidable.php
1 month ago
class-avcf-formidable-detector.php
1 month ago
class-avcf-formidable-helpers.php
1 month ago
class-avcf-formidable-detector.php
24 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Formidable Forms detector. |
| 4 | * |
| 5 | * Detects core (Lite) and Pro. Lite has no entry storage; Pro stores entries. |
| 6 | * |
| 7 | * @package atarim-visual-collaboration |
| 8 | */ |
| 9 | |
| 10 | if ( ! defined('ABSPATH') ) { |
| 11 | exit; |
| 12 | } |
| 13 | |
| 14 | class AVCF_Formidable_Detector { |
| 15 | |
| 16 | public function avcf_formidable_is_available() { |
| 17 | return class_exists( 'FrmForm' ); |
| 18 | } |
| 19 | |
| 20 | public function avcf_formidable_is_pro() { |
| 21 | return $this->avcf_formidable_is_available() && class_exists( 'FrmProDb' ); |
| 22 | } |
| 23 | } |
| 24 |