layers_customizer_panels

Since: 1.1 Last Updated:
Back to Main Index

This filter allows modification of the panels() array, which outputs the Customizer Panels for Layers, such as Site Settings, Header, Footer etc.

Location

/core/customizer/config.php

Usage

In most cases, the core panels should not be removed from a child theme or extension, but you may want to filter them to add additional sections, or add conditions on custom sites, such as hiding all but the Colors for users with a certain role or capability.

Adding a Custom Panel

Existing Panels

The following panels are created by Layers:

  • Panel: Site Settings site-settings
  • Panel: Header header
  • Panel: Footerfooter
  • Panel: WooCommerce woocommerce

See How to Add Customizer Sections & Controls