【发布时间】:2019-03-18 23:59:25
【问题描述】:
我正在使用使用 Redux Framework 的付费主题。我正在尝试在页脚选项中添加一个新字段。我可以在选项中添加此字段,但仅在 print_r() 函数中显示未显示在主题选项面板中。
function add_another_section_bl($sections){
$sections[12]['fields'][] = array(
'id' => 'rd_footer_message_1',
'type' => 'textarea',
'title' => __('Text 2 to display in footer under bar', 'thefoxwp'),
'subtitle' => __('write your copyright information or anything you\'d like.', 'thefoxwp'),
'validate' => 'html', //see http://codex.wordpress.org/Function_Reference/wp_kses_post
'default' => 'Copyright 2015 <a href="http://themeforest.net/user/tranmautritam?ref=tranmautritam" target="_blank">Tranmautritam\'s team</a> | All Rights Reserved'
);
return $sections;}
add_filter("redux/options/rd_data/register", 'add_another_section_bl');
在数组数据中,它显示所需的数据,但不在 wordpress 仪表板的选项面板中。
请让我摆脱这一切。
【问题讨论】:
标签: wordpress