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
189
190           /**
191            * Filter response of {@see WP_Customize_Section::active()}.
192            *
193            * @since 4.1.0
194            *
195            * @param bool                 $active  Whether the Customizer section is active.
196            * @param WP_Customize_Section $section {@see WP_Customize_Section} instance.
197            */
198           $active = apply_filters( 'customize_section_active', $active, $section );
199
200           return $active;
201      }
202
203      /**
204       * Default callback used when invoking {@see WP_Customize_Section::active()}.
205       *
206       * Subclasses can override this with their specific logic, or they may provide
207       * an 'active_callback' argument to the constructor.