WordPress at Your Fingertips
function is not described

strip_core_block_namespace() WP 5.3.1

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

No Hooks.

Return

String. Block name to use for serialization.

Usage

strip_core_block_namespace( $block_name );
$block_name(string)
Original block name.
Default: null

Changelog

Since 5.3.1 Introduced.

Code of strip_core_block_namespace() WP 5.8.2

function strip_core_block_namespace( $block_name = null ) {
	if ( is_string( $block_name ) && 0 === strpos( $block_name, 'core/' ) ) {
		return substr( $block_name, 5 );
	}

	return $block_name;
}