WPDev.one
Core Function
View Source on Trac ↗

wp_get_block_name_from_theme_json_path()

wp_get_block_name_from_theme_json_path( mixed $path )

Gets the block name from a given theme.json path.

Parameters 1 required

Name / Type Description
$path
array

An array of keys describing the path to a property in theme.json.

Required

Return Value

(string)
Identified block name, or empty string if none found.

Function Information

Since Version
6.3.0
Source File
wp-includes/global-styles-and-settings.php
Advertisement