将字段(标题/描述)添加到wordpress - Redux插件

时间:2013-11-08 09:49:42

标签: php arrays wordpress wordpress-plugin

我想在此插件中添加标题/说明字段。任何人都可以建议我怎么做?

守则从这里开始......

$sections[] = array(
    'title' => __('Home Settings', 'redux-framework-demo'),
    'header' => __('Welcome to the Simple Options Framework Demo', 'redux-framework-demo'),
    'desc' => __('Redux Framework was created with the developer in mind. It allows for any theme developer to have an advanced theme panel with most of the features a developer would need. For more information check out the Github repo at: 
<a href="https://github.com/ReduxFramework/Redux Framework">https://github.com/ReduxFramework/Redux-Framework</a>', 'redux-framework-demo'),

'icon_class' => 'icon-large',

'icon' => 'home',


'fields' => array(

    array(
        'id'=>'media',
        'type' => 'media', 
        'url'=> true,
        'title' => __('Media w/ URL', 'redux-framework-demo'),          
        'compiler' => 'true',
        'desc'=> __('Basic media uploader with disabled URL input field.', 'redux-framework-demo'),
        'subtitle' => __('Upload any media using the WordPress native uploader', 'redux-framework-demo'),
        ),                                              
    ),
);

1 个答案:

答案 0 :(得分:3)

不应该太糟糕。只是一个文本字段或什么?我是Redux背后的核心开发人员之一。您可以跳转到我们的问题跟踪器,查看此处的功能请求:https://github.com/ReduxFramework/ReduxFramework/issues

我们对您的需求非常感兴趣,所以请告诉我们。我们很乐意提供帮助。