成功使用此框架的任何人都可以帮助我吗?Redux 声明它使用一个全局变量来引用数据库中所有保存的选项。
我的目标是访问这些存储的选项,以便弄清楚如何调用它们。
诚然,我不熟悉使用选项面板框架。还有另一个类似的问题:redux framework wordpress calling variable。我无法弄清楚使用文档是如何完成的。
这是框架的文档:http: //plovs.github.io/Redux-Framework-Docs/docs.html
我错过了什么?部分/字段数组如下所示:
$sections[] = array(
'title' => __('Home Settings', 'redux-framework-demo'),
'desc' => __('Here, you can change any of the many options bundled with samTheme', 'redux-framework-demo'),
'icon' => 'el-icon-home',
// 'submenu' => false, // Setting submenu to false on a given section will hide it from the WordPress sidebar menu!
'fields' => array(
array(
'id'=>'webFonts',
'type' => 'media',
'title' => __('Web Fonts', 'redux-framework-demo'),
'compiler' => 'true',
'mode' => false, // Can be set to false to allow any media type, or can also be set to any mime type.
'desc'=> __('Basic media uploader with disabled URL input field.', 'redux-framework-demo'),
'subtitle' => __('Upload any media using the WordPress native uploader', 'redux-framework-demo'),
),
$sections[] 数组 id 在名称上是通用的。这些数组在名称上是通用的。我假设这些可以通过 id 引用?这非常令人困惑。如果我在这里遗漏了一些荒谬的东西,我提前道歉。我对这个框架完全陌生。