remove_block_asset_path_prefix


remove_block_asset_path_prefix ( $asset_handle_or_path )

Parameters:
  • (string) asset_handle_or_path Asset handle or prefixed path.
Returns:
  • (string) Path without the prefix or the original value.
Defined at:

Description

Removes the block asset's path prefix if provided.

Related Functions

resolve_block_template, get_block_asset_url, generate_block_asset_handle, _resolve_home_block_template, render_block_core_pattern

Top Google Results

User discussions

wpseek mobile