WPDev.one
Core Function
View Source on Trac ↗

get_block_asset_url()

get_block_asset_url( mixed $path )

Gets the URL to a block asset.

Parameters 1 required

Name / Type Description
$path
string

A normalized path to a block asset.

Required

Return Value

((string)
| false) The URL to the block asset or false on failure.

Function Information

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