Created
November 24, 2018 19:36
-
-
Save eto4detak/af7e9a64bfd4c4b26398c22715a3d2c3 to your computer and use it in GitHub Desktop.
woo php prepare_attributes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = [ | |
'attribute_names' => ['pa_article','pa_land'], | |
'attribute_values' => ['279','222'], | |
'attribute_position' => ['0','0'], | |
'attribute_visibility' => ['1','1'], | |
]; | |
$attributes = WC_Meta_Box_Product_Data::prepare_attributes( $data ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment