Jake Vanderwerf
2025-11-04 42fa8304ddb811b0f725f245130f70c0f5e86a6c
inc/managers/FormManager.php
@@ -8,6 +8,7 @@
    exit; // Exit if accessed directly
}
/**
 * TODO: this is old, I think.
 * Form Manager Class
 * Mainly used for front-end forms.
 * Handles form rendering and processing using MetaManager
@@ -46,7 +47,7 @@
        $this->turnstile_site_key = JVB_CLOUDFLARE_SITE_KEY;
        $this->turnstile_secret_key = JVB_CLOUDFLARE_SECRET_KEY;
        $this->meta = new MetaManager(null, 'form');
        $this->cache = new CacheManager('forms', WEEK_IN_SECONDS);
        $this->cache = CacheManager::for('forms', WEEK_IN_SECONDS);
    }
    /**
@@ -146,6 +147,7 @@
        <form id="<?= $id ?>" class="jvb-form" action="<?=esc_url(admin_url('admin-post.php'))?>" method="post">
        <?php
        wp_nonce_field('jvb_form_' . $id);
      echo jvbFormStatus();
    }