0
votes

Similar to Wordpress - Adding to Redux Theme Options using Child Theme

I'm am looking to control Redux sections with current_theme_supports($feature), so that if a theme supports a feature, a section won't be displayed. Eg if colors are managed by the theme (and the theme declares support), don't display the color section, but if not, display it.

I have got the filter working great with redux/options/option_name/sections, but at the point the filter is run global $_wp_theme_features is null.

Any tips on the best way to implement this?

1

1 Answers

0
votes

Lead dev of Redux here. Delay the loading of your option panel to the init hook. Basically your panel is loading before $_wp_theme_features is populated. The earliest you can run it is after_setup_theme. That's when the theme files (functions.php) has loaded.

Once you do that, all should be gravy. :)