themeplate/customizer
最新稳定版本:v1.1.0
Composer 安装命令:
composer require themeplate/customizer
包简介
ThemePlate custom customizer sections with fields
README 文档
README
Usage
use ThemePlate\Customizer\CustomSection; ( new CustomSection( 'My Section' ) )->fields( $list )->location( 'panel' )->create();
use ThemePlate\Customizer\CustomSection; add_action( 'customize_register', function( $customizer ) { $customizer->add_panel( 'my-panel', array( 'title' => 'My Panel' ) ); /** https://developer.wordpress.org/reference/classes/wp_customize_section/__construct/#parameters */ $args = array( 'panel' => 'my-panel', 'description' => 'This is an example.', ); $section = new CustomSection( 'Another Section', $args ); $section->fields( $list )->hook( $customizer ); } );
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2023-01-28