Skip to content

ThemePlate/Customizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThemePlate Customizer

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 );
} );

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages