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.zipElite 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_restenabled). - Provides an admin page to store GitHub token / repo / GitPage API key.
- Hooks
save_postto write a JSON file to uploads/elite-sync/ and attempts to commit to GitHub (demo). - Exposes REST endpoint
/wp-json/elite-core/v1/pushto receive internal push requests.
Next steps (productionise)
- 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.
- Use a GitHub App or short-lived tokens for safer repo access.
- Add Webhook handler for GitHub/GitLab deploy notifications to update deploy status in the admin UI.
- 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. - Harden permissions and restrict the REST endpoint if you plan to expose it externally.
- 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'