Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/choctaw-nation/cno-plugin-cnhsa-content-federation/releases/download/v2.0.0/cno-plugin-cnhsa-content-federation.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
CNHSA Content Federation
This plugin creates a two-way street, in conjunction with its sibling plugin, for federating content between the CNO and CNHSA sites. It is exclusively for use on the Choctaw Nation site.
GitHub Pages shows test coverage
Quick Dev Notes
- This plugin uses classmap autoloading, meaning each time you add a new class, you must run
composer dump-autoloadto load it. - Classes are namespaced in PSR-4-like style. It's not perfect, but it basically conforms to the following structure:
namespace ChoctawNation\CNHSA_Federationpoints toinc/- Every folder after that is included in the namespace (i.e.
namespace ChoctawNation\CNHSA_Federation\Transport)
Architecture Overview
General Overview:
inc/is where PHP livestests/is where the PHPUnit tests livesrc/is where the React code (for Admin Screen) lives
Terms
inc/WPhas files (and subdirectories) related to WordPress actions (hooks, cron events, post/payload creation, etc)inc/Transportis for files related to sending/receiving data over HTTPHTTP_Gatewayclass is for sending (outbound) dataRest_Routerclass is for receiving (inbound) data
Releases
5 releases. Each count is every asset in that release; expand a row for the breakdown.
Tag
Published
Assets
Downloads