bp_core_get_emails_admin_tabs( string $active_tab = '' )
Register tabs for the BuddyBoss > Emails screens.
Description
Parameters
- $active_tab
-
(Optional)
Default value: ''
Return
(array)
Source
File: bp-core/admin/bp-core-admin-functions.php
2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 | function bp_core_get_emails_admin_tabs( $active_tab = '' ) { $tabs = array (); $tabs [] = array ( 'href' => bp_get_admin_url( add_query_arg( array ( 'post_type' => bp_get_email_post_type() ), 'edit.php' ) ), 'name' => __( 'Emails' , 'buddyboss' ), 'class' => 'bp-email-templates' , ); $tabs [] = array ( 'href' => bp_get_admin_url( add_query_arg( array ( 'page' => 'bp-emails-customizer-redirect' ), 'themes.php' ) ), 'name' => __( 'Customize Layout' , 'buddyboss' ), 'class' => 'bp-emails-customizer' , ); /** * Filters the tab data used in our wp-admin screens. * * @since BuddyBoss 1.0.0 * * @param array $tabs Tab data. */ return apply_filters( 'bp_core_get_emails_admin_tabs' , $tabs ); } |
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.