WPDev.one
Core Function
View Source on Trac ↗

remove_block_asset_path_prefix()

remove_block_asset_path_prefix( mixed $asset_handle_or_path )

Removes the block asset's path prefix if provided.

Parameters 1 required

Name / Type Description
$asset_handle_or_path
string

Asset handle or prefixed path.

Required

Return Value

(string)
Path without the prefix or the original value.

Function Information

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