Commit 58adac50 authored by Michael Iseard's avatar Michael Iseard
Browse files

Add filter to settingCard

parent 5779db84
const {CardBody} = wp.components
const {applyFilters} = wp.hooks
const SettingCard = ({ title, children }) => {
const SettingCard = ({ title, children, id }) => {
let filtered = applyFilters('kudos.settings.settingCard.' + id, {title: title, children: children})
return (
<CardBody size="medium">
<h3 className="kd-mb-5">{title}</h3>
{ children }
<h3 className="kd-mb-5">{filtered.title}</h3>
{filtered.children}
</CardBody>
)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment