Skip to content

acf_add_customizer_panel

Jörn Lund edited this page Sep 1, 2019 · 3 revisions

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,
));
Clone this wiki locally