wp.hooks.addFilter syntax?
-
The goal is to remove the Advanced -> Additional CSS Class from the block editor. I have this working, but can someone please explain my line 12, ‘what_is_this_line’:
`
function lxbDeRemoveCustomClassName( settings, name ) {return lodash.assign( {}, settings, {
supports: lodash.assign( {}, settings.supports, {
customClassName: false
} ),
} );
}wp.hooks.addFilter(
‘blocks.registerBlockType’,
‘what_is_this_line’,
lxbDeRemoveCustomClassName
);
`
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘wp.hooks.addFilter syntax?’ is closed to new replies.