Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/himeylo/plugin-fo/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WordPress Plugin
This plugin gets data from any API that is set in the plugin settings. The shortcode, [fo-shortcode] displays a content view from the top 4 returned API data results set, followed by a raw data dump for ease of reference.
Follow the guidance in Developer Installation to set up and run your local environment. The sections that follow contain additional information for your reference.
Developer Installation
These instructions provide 2 options for running your local environment. You only need to use one option.
Option 1. Docker
Run the commands below and then open your browser to http://localhost:8888.
Running npm start will start up your local environment and, also, begin watching for changes to styles/scripts.
Option 2. Local
Login Credentials
When prompted, use the following to log in to the WordPress dashboard:
Directory Structure
This plugin uses a specific directory structure which separates concerns between WordPress site administration features, WordPress site rendering hooks, static assets (CSS, JS, images, etc), and third party integrations. The directories are listed below with a brief description of what they contain.
1. .bin - Custom scripts