Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: customize_section_active

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
186
187           /**
188            * Filters response of WP_Customize_Section::active().
189            *
190            * @since 4.1.0
191            *
192            * @param bool                 $active  Whether the Customizer section is active.
193            * @param WP_Customize_Section $section WP_Customize_Section instance.
194            */
195           $active = apply_filters( 'customize_section_active', $active, $section );
196
197           return $active;
198      }
199
200      /**
201       * Default callback used when invoking WP_Customize_Section::active().
202       *
203       * Subclasses can override this with their specific logic, or they may provide
204       * an 'active_callback' argument to the constructor.