【发布时间】:2015-08-24 03:27:50
【问题描述】:
类似于Wordpress - Adding to Redux Theme Options using Child Theme
我希望使用 current_theme_supports($feature) 来控制 Redux 部分,这样如果主题支持某个功能,则不会显示部分。例如,如果颜色由主题管理(并且主题声明支持),则不要显示颜色部分,但如果不是,则显示它。
我已经让过滤器在 redux/options/option_name/sections 上运行良好,但在过滤器运行时 global $_wp_theme_features 为空。
关于实现这一点的最佳方法的任何提示?
【问题讨论】: