garung/customizer

为WordPress创建定制

dev-master 2017-07-23 16:18 UTC

This package is not auto-updated.

Last update: 2024-09-15 04:13:31 UTC


README

定制wp

描述:为WordPress创建简单的定制。输入类型包括:"文本,复选框,单选框,下拉菜单,页面下拉菜单"。

参数

DEMO
/**
 * Class handle for Product Custom Post Type
 */
class SettingTheme
{
    public function __construct()
    {
        $fields = [
            'name_section' => 'information_contact',
            'title_setion' => 'Information contact',
            'priority_setion' => 40,
            'addsetting' => [
                [
                    'name_setting' => 'support_phone',
                    'label_setting' => 'Support Phone',
                    'default_value' => '0123456789',
                    'priority_control' => 5,
                    'type' => 'text'
                ]
            ]
        ];
        $customizer = new Garung\CustomizeTheme($fields);
    }
}

new SettingTheme();