If plugin data is saving to options table, You can add config for this option.
Thread Starter
Siamwp
(@programmerloso)
Can you show some example code ?
This is my wpm-config.json file. It doesn’t work. bacs_account_name is multidimensional array.
{
"admin_pages": [
"woocommerce_page_wc-settings"
],
"options": {
"bacs_account_name": {
"0": {}
}
}
}
Can You show me the dump of this settings array?
Thread Starter
Siamwp
(@programmerloso)
Sure. But I don’t understand do you want. Array in wpm-config.json or input array in BASC settings ?
I’m sorry. Thankyou
-
This reply was modified 8 years, 7 months ago by
Siamwp.
Input array in BASC settings.
Thread Starter
Siamwp
(@programmerloso)
The input array in BASC settings like this code below.
bacs_account_name[0]
bacs_account_number[0]
bacs_bank_name[0]
bacs_account_name[1]
bacs_account_number[1]
bacs_bank_name[1]
bacs_account_name[2]
bacs_account_number[2]
bacs_bank_name[2]
It’s two dimensional array
This is not dump.
Add this code to wpm-config in options section:
"woocommerce_bacs_accounts": {
"wpm_each": {
"account_name": {},
"bank_name": {}
}
}
Thread Starter
Siamwp
(@programmerloso)
That’s great!. It works perfectly.
@valexar you awesome. Thank you.