NPM package for components and common code used across various WordPress admin screens for Built North plugins.
- Run
npm install --save @builtnorth/wp-admin-dashboard
within your WordPress theme or plugin. - Import the relevant component(s) into your file(s) e.g.
import { AdminHeader } from '@builtnorth/wp-admin-dashboard';
- Renders the admin header with options to change the title and icon.
-
JS companion to
wp_get_attachment()
. (From Brian Coords) - Extends default MediaUpload component slightly.
- Manages & displays the Snackbar notices on save/upate.
- Updates settings and saves them to the database.
In additon to the components, this package also contains a library of SCSS files of commonly used styles.