Skip to content

Repository files navigation

ThemePlate Customizer

Usage

useThemePlate\Customizer\CustomSection;
( newCustomSection( 'My Section' ) )->fields( $list )->location( 'panel' )->create();
useThemePlate\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 = newCustomSection( 'Another Section', $args );
$section->fields( $list )->hook( $customizer );
} );

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages