Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/18/2016 09:55:27 AM (9 years ago)
Author:
djpaul
Message:

Emails: add Emails > Customise menu item.

Feedback from regular BuddyPress testers and developers has suggested
the Appearance > Emails item (which takes you to the Customizer) is
not obvious to find.

Adding a Customizer item to the top-level Emails menu should increase
discoverability of the email appearance features.

Fixes #6918, props r-a-y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-admin.php

    r10589 r10612  
    348348                _x( 'Emails', 'screen heading', 'buddypress' ),
    349349                _x( 'Emails', 'screen heading', 'buddypress' ),
     350                $this->capability,
     351                'bp-emails-customizer-redirect',
     352                'bp_email_redirect_to_customizer'
     353            );
     354
     355            // Emails > Customize.
     356            $hooks[] = add_submenu_page(
     357                'edit.php?post_type=' . bp_get_email_post_type(),
     358                _x( 'Customize', 'email menu label', 'buddypress' ),
     359                _x( 'Customize', 'email menu label', 'buddypress' ),
    350360                $this->capability,
    351361                'bp-emails-customizer-redirect',
Note: See TracChangeset for help on using the changeset viewer.