layers_customizer_default_sections
The Layers layers customizer default sections hook.
Description
Parameters (1)
- 0. $default_sections (unknown)
- The default sections.
Usage
- To run the hook, copy the example below.
- $default_sections = apply_filters( 'layers_customizer_default_sections', $default_sections );
- if ( !empty( $default_sections ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the layers_customizer_default_sections callback
- function filter_layers_customizer_default_sections( $default_sections ) {
- // make filter magic happen here...
- return $default_sections;
- };
- // add the filter
- add_filter( 'layers_customizer_default_sections', 'filter_layers_customizer_default_sections', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'layers_customizer_default_sections', 'filter_layers_customizer_default_sections', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /core/customizer/config.php
- return apply_filters( 'layers_customizer_default_sections', $default_sections );