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