Commit a02034ea authored by Michael Iseard's avatar Michael Iseard
Browse files

Pass all props in filter

parent bf5726c2
const {CardBody} = wp.components
const {applyFilters} = wp.hooks
const SettingCard = ({ title, children, id }) => {
const SettingCard = (props) => {
let filtered = applyFilters('kudos.settings.settingCard.' + id, {title: title, children: children})
let filtered = applyFilters('kudos.settings.settingCard.' + props.id, {...props})
return (
<CardBody size="medium">
......
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