plugins – Result of the Woocommerce query as a Redux Framework field option

I would like to use a Board returned by a WooCommerce filter as a value in a Redux Framework field. I understand that the filter comes back after the WooCommerce plugin loaded. I tried to move the Redux :: setSection method in the filter function, but it seems that the section method is not called in this case. No suggestion?

$ statuses;
add_filter (& # 39; wc_order_statuses & # 39;; & gt; custom_wc_order_statuses & # 39;);
function custom_wc_order_statuses ($ order_statuses) {


$ statuses = $ order_statuses;

return $ order_statuses;
}



/ * Need to pass $ statuses to Redux :: setSection * /

Redux :: setSection ($ opt_name, array (
& # 39; title & # 39; => __ ('text options', 'redux-framework-demo'),
& # 39; desc & # 39; => __ (For a complete documentation on this domain, visit: "redux-framework-demo"). & # 39;http://docs.reduxframework.com/core/fields/text/& # 39 ;,
& # 39; id & # 39; => & # 39; opt-text-subdivision & # 39 ;,
& # 39; icon & # 39; => & Nbsp; el el-home & # 39;
& # 39; Subdivision & # 39; => false,
& # 39; field & # 39; => table (


board (
& # 39; id & # 39; => & # 39; multi-text & # 39;
& # 39; like & # 39; => & # 39; multi_text & # 39 ;,
& # 39; title & # 39; => __ ("Multiple text option - validated color", "redux-framework-demo"),
& # 39; accept & # 39; => & # 39 ;, color
& # 39; subtitle & # 39; => __ (& # 39; If you enter an invalid color, it will be removed. Try using the text "blue" as the color.); & # 39; redux-framework-demo & # 39;),
& # 39; desc & # 39; => __ (& # 39; This is the description field, still useful for additional information. & # 39;; & # 39; redux-framework-demo & # 39;)
)
board (
& # 39; id & # 39; => & # 39; opt-select & # 39 ;,
& # 39; like & # 39; => & # 39 ;, select
& # 39; title & # 39; => __ ('Select Option', 'redux-framework-demo'),
& # 39; subtitle & # 39; => __ (& # 39; No validation can be done on this type of field & # 39 ;, & quot; redux-framework-demo & # 39;),
& # 39; desc & # 39; => __ (& # 39; This is the description field, still useful for additional information. & # 39;; & # 39; redux-framework-demo & # 39;),
// must provide key pairs => value for selected options
& # 39; Options & # 39; => $ statuses,
& # 39; default & # 39; => & # 39; 2 & # 39;
)
)
));