I have referenced a field with taxonomy by using simple hierarchical module and now I have to fetch the options programmatically to perform some actions on them. I tried to fetch it like the below it didn't work out.
$form['field_delivery_methods']['widget']['#options'];
This worked on shs 8.x-1.0-alpha5 but after upgrading to shs 2.0.0-rc3 its not working. Does anyone help me in understanding the latest structure on how to fetch the options?