if ( file_exists( dirname( __FILE__ ) . '/../README.md' ) ) {
$section = array(
'icon' => 'el el-list-alt',
'title' => '文档说明',
'fields' => array(
array(
'id' => '17',
'type' => 'raw',
'markdown' => true,
'content_path' => dirname( __FILE__ ) . '/../README.md', // 完整路径,不是相对的,请注意
//'content' => 'Raw content here',
),
),
);
Redux::setSection( $opt_name, $section );
}
以上内容添加入SECTIONS中间。
为框架添加文档说明
最新推荐文章于 2024-10-09 09:28:50 发布