bp_email_remove_widgets_panel( array $components )

Removes the core ‘Widgets’ panel from the Email Customizer.

Description

Parameters

$components

(Required) Core Customizer components list.

Return

(array) (Maybe) modified components list.

Source

File: bp-core/bp-core-customizer-email.php

555
556
557
558
559
560
561
562
563
function bp_email_remove_widgets_panel( $components ) {
    $i = array_search( 'widgets', $components );
 
    if ( bp_is_email_customizer() && false !== $i ) {
        unset( $components[ $i ] );
    }
 
    return $components;
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.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.