kasia-plugin-wp-api-all-terms
v0.0.3
Published
Provides support for the WP-API all terms plugin to Kasia
Downloads
13
Maintainers
Readme
Kasia Plugin WP-API All Terms
Adds support for the WP-API all terms plugin to Kasia
Made with ❤ at @outlandish
Install
npm install --save kasia-plugin-wp-api-all-terms
Import
// 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:
const { kasiaReducer, kasiaSagas } = Kasia({
WP,
plugins: [KasiaWpApiAllTermsPlugin]
})
Actions
Import:
import { fetchTerms } from 'kasia-plugin-wp-api-all-terms'
fetchTerms()
Get all terms available.
Terms will be available at store.wordpress.terms
, for example:
{
categories: [{
term_id: 3
}],
tags: [{
term_id: 16
}],
technologies: [{
term_id: 15
}]
}
Universal Applications
import { makePreloader } from 'kasia-plugin-wp-api-all-terms'
makePreloader(WP)
- 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.