packages/kirki-framework/core/src/Init.php
public function add_panels() {
		if ( ! empty( Kirki::$panels ) ) {
			foreach ( Kirki::$panels as $panel_args ) {
				// Extra checks for nested panels.
				if ( isset( $panel_args['panel'] ) ) {
					if ( isset( Kirki::$panels[ $panel_args['panel'] ] ) ) {
						// Set the type to nested.
						$panel_args['type'] = 'kirki-nested';
					}
				}

				new Panel( $panel_args );
			}
		}
	}
public function add_panels() {
		if ( ! empty( Kirki::$panels ) ) {
			foreach ( Kirki::$panels as $panel_args ) {
				// Extra checks for nested panels.
				if ( isset( $panel_args['panel'] ) ) {
					if ( isset( Kirki::$panels[ $panel_args['panel'] ] ) ) {
						// Set the type to nested.
						$panel_args['type'] = 'kirki-nested';
					}
				}

				new Panel( $panel_args );
			}
		}
	}
public function add_panels ( ) { if ( ! empty ( Kirki :: $ panels ) ) { foreach ( Kirki :: $ panels as $ panel_args ) { // Extra checks for nested panels. if ( isset ( $ panel_args [ 'panel' ] ) ) { if ( isset ( Kirki :: $ panels [ $ panel_args [ 'panel' ] ] ) ) { // Set the type to nested. $ panel_args [ 'type' ] = 'kirki-nested' ; } } new Panel ( $ panel_args ) ; } } }
Register our panels to the WordPress Customizer.

@access public
Register our panels to the WordPress Customizer .