acf_add_customizer_panel - mcguffin/acf-customizer GitHub Wiki

acf_add_customizer_panel( $panel = '' )

Adds a customizer panel.
Call this function before or inside the init hook.

Arguments

Return Value

$panel_id String
The Panel ID.

Example

$panel_id = acf_add_customizer_panel(array(
    'title'        => 'Theme-Options',
));

acf_add_customizer_section(array(
    'title'        => 'Basic',
    'storage_type' => 'option',
    'panel'        => $panel_id,
));

acf_add_customizer_section(array(
    'title'        => 'Advanced',
    'storage_type' => 'option',
    'panel'        => $panel_id,
));