gv-core

GARDEVAULT CORE

Central Console & Services for GV Plugins

Unifies GardeVault plugins with a central dashboard.
Provides shared services like Audit Logging, Cloudflare integration, and WP-CLI commands.

Why this plugin

Provides a unified management experience for all GardeVault plugins.
Centralizes common functionalities like logging and external API integrations, reducing redundancy and simplifying site administration.

Central Console

View all detected GV plugins, status, versions, and access settings or quick actions from one screen.

Cloudflare Integration

Allows GV plugins to purge Cloudflare cache via API (URLs or Tags). Includes manual purge tools.

Audit Logging

Central gv_audit table with gv_audit() and gv_notify() for plugin event logging.

WP-CLI Commands

Includes wp gv log to view audit logs and wp gv purge to clear Cloudflare cache from the command line.

How it works

1. Plugin Activation

Core plugin creates the gv_audit table and schedules daily log pruning.

2. Module Registration

Other GV plugins use gv_core_register_module() on admin_init to appear in the console.

3. Service Usage

Plugins call shared functions like gv_audit(), gv_notify(), and gv_cf_purge_urls() as needed.

4. Console UI

The GardeVault menu provides tabs to view modules, logs, run tools, and configure core settings.

Install & Setup

1. Install First

  • Upload gv-core.zip via Plugins → Add New, or extract to wp-content/plugins/.
  • Activate the plugin. This should generally be activated *before* other GV plugins.

2. Configure (Optional)

  • Go to GardeVault (main menu) → Settings tab.
  • Enter Cloudflare API Token and Zone ID if using cache purging.
  • Enable Security Headers if needed (check for server/CDN conflicts).

3. Use Console

  • Access the GardeVault console from the main admin menu.
  • Use the Modules tab to access other GV plugin settings/panels.
  • Check the Audit tab for recent events.

Technical details

  • Creates custom DB table wp_gv_audit for logging.
  • Registers other GV plugins via gv_core_register_module action hook.
  • Provides helper functions: gv_core_ready(), gv_audit(), gv_notify(), gv_cf_purge_urls().
  • Adds WP-CLI commands: wp gv log, wp gv purge, wp gv prune.
  • Optionally adds security headers (HSTS, X-Frame-Options, etc) via send_headers.
  • Adds a Site Health test for Cloudflare configuration status.
  • Includes daily cron job (gv_core_daily_prune) for automatic audit log pruning.

FAQ

Yes, GV Core provides essential shared services like audit logging (gv_audit, gv_notify) that other GV plugins rely on. It also provides the central console for managing settings and updates (future).
Events are stored in a custom database table named wp_gv_audit (prefix may vary). You can view recent entries in the GardeVault Console -> Audit tab or via WP-CLI (wp gv log). Logs are automatically pruned daily.
No, Cloudflare integration is optional. If you don't use Cloudflare or don't configure the API Token and Zone ID, the cache purging features will simply be unavailable, but the rest of the plugin and console will work fine.
They add HTTP headers recommended for security, like X-Content-Type-Options: nosniff, X-Frame-Options: SAMEORIGIN, and optionally HSTS. Enable these only if your web server or CDN isn't already setting them, to avoid conflicts.

Need Help Integrating GV Core?

Contact us for support integrating the GardeVault plugin suite or extending the Core services for your specific needs.

Contact us

Protected by reCAPTCHA