This is a plugin boilerplate built on the Underpin Framework. For information on how to use this, check out Underpin's docs.
This plugin expects that Underpin has been installed as a WordPress Must-Use plugin.
- Install Underpin. See Underpin for more info on that
- Install the Template Loader
- Start building!
There are a handful of loaders that get used in most WordPress themes. Keep these in-mind as you work on the theme, and use them if you find you need the functionality:
- Block Loader Create, register, and manage WordPress blocks.
- Decision List Loader Create decision list registries that makes custom logic easy to extend.
- Menu Loader Register, and manage custom theme nav menus
- Meta Loader Manage custom meta to store in various meta tables
- Option Loader Register , and manage values to store in wp_options
- Rest Endpoint Loader Create, register, and manage REST endpoints
- Script Loader Create, and enqueue scripts
- Shortcode Loader Create, and render custom shortcodes
- Sidebar Loader Create, and manage WordPress sidebars
- Style Loader Create, and enqueue styles
The Webpack and NPM configuration in this plugin is a barebones WordPress configuration that aligns the script dir with Underpin's default script directory. It is intentionally un-opinionated, but it is set-up and ready to be extended.
The default entrypoint is src/index.js
.
The default webpack config comes with Webpack's postCSS loader, and can handle SCSS and CSS files. You can override the default loader by adding a postcss file to this theme.