WPDev.one
Core Function
View Source on Trac ↗

strip_core_block_namespace()

strip_core_block_namespace( mixed $block_name = null )

Returns the block name to use for serialization. This will remove the default

Parameters 1 required

Name / Type Description
mixed

(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.

Required

Return Value

(string)
Block name to use for serialization.

Function Information

Since Version
5.3.1
Source File
wp-includes/blocks.php
Advertisement