class-avcf-abilities-flamingo-pro.php
4 weeks ago
class-avcf-abilities-flamingo.php
4 weeks ago
class-avcf-flamingo-detector.php
4 weeks ago
class-avcf-flamingo-helpers.php
4 weeks ago
class-avcf-flamingo-detector.php
24 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Flamingo detector. |
| 4 | * |
| 5 | * Flamingo is a standalone message-storage plugin (the de-facto entry store for |
| 6 | * Contact Form 7, but independently installable and form-agnostic). Detected by |
| 7 | * its inbound-message class / custom post type. This cluster reads Flamingo by |
| 8 | * channel and offers a CF7-aware convenience: resolving a CF7 form_id to its |
| 9 | * Flamingo channel via the form's _flamingo meta. |
| 10 | * |
| 11 | * @package atarim-visual-collaboration |
| 12 | */ |
| 13 | |
| 14 | if ( ! defined('ABSPATH') ) { |
| 15 | exit; |
| 16 | } |
| 17 | |
| 18 | class AVCF_Flamingo_Detector { |
| 19 | |
| 20 | public function avcf_flamingo_is_available() { |
| 21 | return class_exists( 'Flamingo_Inbound_Message' ) || post_type_exists( 'flamingo_inbound' ); |
| 22 | } |
| 23 | } |
| 24 |