wpseek.com
A WordPress-centric search engine for devs and theme authors



block_default_classname › WordPress Filter Hooks

Since5.6.0
Deprecatedn/a
apply_filters( 'block_default_classname', $classname, $block_name )
Parameters: (2)
  • (string) $class_name The current applied classname.
    Required: Yes
  • (string) $block_name The block name.
    Required: Yes
Defined at:
Codex:

Filters the default block className for server rendered blocks.





Source

$classname = apply_filters( 'block_default_classname', $classname, $block_name );