JS Filters
lzb.constructor.controls.item
Filters constructor JSX item render.
Attributes
Name | Type | Description |
---|---|---|
render | JSX | render JSX item |
props | Object | props |
Additional Filters
Name | Description |
---|---|
lzb.constructor.controls.CONTROL_TYPE.item | specific controls only |
Usage
JS
wp.hooks.addFilter(
"lzb.constructor.controls.item",
"my.custom.namespace",
function (render, props) {
console.log(render, props);
return render;
}
);
JS
wp.hooks.addFilter(
"lzb.constructor.controls.checkbox.item",
"my.custom.namespace",
function (render, props) {
console.log(render, props);
return render;
}
);