WP Manifestindependent plugin directory
manifest / developer / elite-core

Elite Core CPTs & Connector

Elite Layout's Official WordPress Plugin

by Elite Layouts · github.com/servaas101/elite-core · 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/servaas101/elite-core/archive/refs/heads/main.zip

Elite Core CPTs & Connector (v1.0)

Drop this folder into wp-content/plugins/elite-core/ and activate the plugin.

What this plugin does (skeleton)

  • Registers required CPTs for Elite Layouts.
  • Exposes them via REST API (show_in_rest enabled).
  • Provides an admin page to store GitHub token / repo / GitPage API key.
  • Hooks save_post to write a JSON file to uploads/elite-sync/ and attempts to commit to GitHub (demo).
  • Exposes REST endpoint /wp-json/elite-core/v1/push to receive internal push requests.

Next steps (productionise)

  1. Replace local file writes + simple GitHub helper with a robust queue and background worker:
    • Use WP Background Processing, an external queue (Redis / RabbitMQ), or a server worker.
  2. Use a GitHub App or short-lived tokens for safer repo access.
  3. Add Webhook handler for GitHub/GitLab deploy notifications to update deploy status in the admin UI.
  4. Add ACF field groups or export/authoritative JSON definitions for templates and pages. If using ACF, import via exported JSON or use acf_add_local_field_group.
  5. Harden permissions and restrict the REST endpoint if you plan to expose it externally.
  6. Add unit/integration tests for commit helper and rate-limit/backoff.

How to seed content

Write a small WP-CLI script or use wp_insert_post to create starter pages, templates, and settings from onboarding JSON.

Example: create a template with WP-CLI (local)

wp post create --post_type=elite_template --post_title='Agency v1' --post_status=publish --post_content='Starter template'