Assets::get_wc_block_data( array $settings )

Returns block-related data for enqueued wc-block-settings script.


Description Description

This is used to map site settings & data into JS-accessible variables.


Parameters Parameters

$settings

(Required) The original settings array from the filter.


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 returned merged data along with incoming $settings
2.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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