WP Manifestindependent plugin directory
manifest / integrations / wordpress-chefs-integration

WordPress CHEFS Integration

This repository contains a WordPress plugin that provides integration with the CHEFS (Common Hosted Electronic Forms Service) API. CHEFS is a forms service used by the BC Government.

by govwordpress@gov.bc.ca · github.com/bcgov/wordpress-chefs-integration · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/bcgov/wordpress-chefs-integration/archive/refs/heads/main.zip

From the readme

WordPress CHEFS Integration Plugin Getting started Environment Setup 1. Create environment file: Copy sample.env and rename it to .env 2. Configure Producer Form ID: - Add your producer form ID as PRODUCERFORMID in the .env file - You can find this ID in the URL when viewing the form in CHEFS 3. Set up API Key: - Add your producer form API key as PRODUCERFORMAPIKEY in the .env file - Generate this key in CHEFS: navigate to your form → Api key → Generate API Key Map File Structure Overview Map files are JSON objects that define how CHEFS form fields map to WordPress data. Currently, there's a hardcoded mapping file at maps/producer.json for BC Food Directory Producer CPT posts (included for demonstration purposes). Note: In future versions, mapping configuration may be provided through plugin options or environment files to improve reusability across different sites. Map File Format Each map file uses CHEFS field IDs as top-level keys, with mapping configuration objects as values. Configuration Properties | Property | Type | Description | Required | Default | |----------|------|-------------|----------|---------| | name | string | WordPress metadata key or

Read the full README on GitHub →