bp_email_customizer_hide_sections( bool $active, WP_Customize_Section $section )
Only show email sections in the Customizer.
Description
Parameters
- $active
-
(Required) Whether the Customizer section is active.
- $section
-
(Required) WP_Customize_Section instance.
Return
(bool)
Source
File: bp-core/bp-core-customizer-email.php
function bp_email_customizer_hide_sections( $active, $section ) { if ( ! bp_is_email_customizer() ) { return $active; } return in_array( $section->id, array_keys( bp_email_get_customizer_sections() ), true ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.5.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.