strip_core_block_namespace


strip_core_block_namespace ( $block_name = null )

Parameters:
  • (string|null) block_name Optional. Original block name. Null if the block name is unknown, e.g. Classic blocks have their name set to null. Default null.
Returns:
  • (string) Block name to use for serialization.
Defined at:

Description

Returns the block name to use for serialization. This will remove the default "core/" namespace from a block name.

Related Functions

register_core_block_style_handles, wp_register_core_block_metadata_collection, resolve_block_template, get_block_template, locate_block_template

Top Google Results

User discussions

wpseek mobile