Provides support for the WP-API all terms plugin to Kasia
npm install kasia-plugin-wp-api-all-termssh
npm install --save kasia-plugin-wp-api-all-terms
`
Import
`js
// ES2015
import KasiaWpApiAllTermsPlugin from 'kasia-plugin-wp-api-all-terms'
// CommonJS
var KasiaWpApiAllTermsPlugin = require('kasia-plugin-wp-api-all-terms')
`
Initialise
Pass to Kasia via the plugins option:
`js
const { kasiaReducer, kasiaSagas } = Kasia({
WP,
plugins: [KasiaWpApiAllTermsPlugin]
})
`
Actions
Import:
`js
import { fetchTerms } from 'kasia-plugin-wp-api-all-terms'
`
$3
Get all terms available.
Terms will be available at store.wordpress.terms, for example:
`js
{
categories: [{
term_id: 3
}],
tags: [{
term_id: 16
}],
technologies: [{
term_id: 15
}]
}
`
Universal Applications
`js
import { makePreloader } from 'kasia-plugin-wp-api-all-terms'
`
$3
- __WP__ {Object} WP API instance
Returns a single saga generator.
Contributing
All pull requests and issues welcome!
- When submitting an issue please provide adequate steps to reproduce the problem.
- PRs must be made using the standard code style.
- PRs must update the version of the library according to semantic versioning.
If you're not sure how to contribute, check out Kent C. Dodds'
great video tutorials on egghead.io!
Author & License
kasia-plugin-wp-api-all-terms` was created by Outlandish and is released under the MIT license.