Hub API Content Picker
A WordPress plugin that creates a custom field to enable users to select content from the Hub API.
★ 0stars
3.4kcomposer installs
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/johnshopkins/acf-hub-api/archive/refs/heads/main.zipAlso on Packagist as johnshopkins/acf-hub-api:
composer require johnshopkins/acf-hub-apiFrom the readme
Hub API Content Picker
Advanced Custom field that enables users to select content from the Hub API.
Installation via Composer
In your composer.json file, be sure to let Composer know where to install WordPress plugins:
Require the plugin:
In wp-config.php or your theme's functions file, define your Hub auhthentication:
Activate the plugin in WordPress.
Field value
When getting the value of the field, you will receive an array with endpoint parts, like so:
It is up to your theme to query the API and fetch the results.