Assets::get_block_asset_build_path( string $filename, string $type = 'js' )

Returns the appropriate asset path for loading either legacy builds or current builds.


Description Description


Parameters Parameters

$filename

(Required) Filename for asset path (without extension).

$type

(Optional) File type (.css or .js).

Default value: 'js'


Top ↑

Return Return

(string) The generated path.


Top ↑

Source Source

File: woocommerce/packages/woocommerce-blocks/src/Assets.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.