小编wir*_*s-g的帖子

Wordpress - 使用子主题添加到Redux主题选项

我正在使用一个wordpress主题,它有自己的框架,它基于我认为的redux框架.我正在使用子主题修改此主题.我想在后端添加主题选项,我在父主题的文件中找到了一个似乎正是我需要的函数:

/*
 *
 * Custom function for filtering the sections array. Good for child themes to override or add to the sections.
 * Simply include this function in the child themes functions.php file.
 *
 * NOTE: the defined constansts for URLs, and directories will NOT be available at this point in a child theme,
 * so you must use get_template_directory_uri() if you want to use any of the built in icons
 *
 */
function add_another_section($sections){
    //$sections = array();
    $sections[] = …
Run Code Online (Sandbox Code Playgroud)

php wordpress redux-framework

1
推荐指数
1
解决办法
3405
查看次数

标签 统计

php ×1

redux-framework ×1

wordpress ×1