bp_email_get_appearance_settings()
Return email appearance settings.
Description
Return
(array)
Source
File: bp-core/bp-core-functions.php
function bp_email_get_appearance_settings() {
$default_args = array(
'body_bg' => '#FFFFFF',
'quote_bg' => '#F7FAFE',
'body_border_color' => '#E7E9EC',
'body_text_color' => '#7F868F',
'body_secondary_text_color' => '#122B46',
'body_text_size' => 16,
'email_bg' => '#FAFBFD',
'footer_text_color' => '#7F868F',
'footer_text_size' => 12,
'highlight_color' => '#007CFF',
'site_title_logo_size' => 150,
'site_title_text_color' => '#122B46',
'site_title_text_size' => 20,
'recipient_text_color' => '#7F868F',
'recipient_text_size' => 14,
'direction' => is_rtl() ? 'right' : 'left',
'footer_text' => sprintf(
/* translators: email disclaimer, e.g. "© 2016 Site Name". */
__( '© %s %s', 'buddyboss' ),
date_i18n( 'Y' ),
bp_get_option( 'blogname' )
),
);
$options = bp_parse_args(
bp_get_option( 'bp_email_options', array() ),
$default_args,
'email_appearance_settings'
);
// Link text colour defaults to the highlight colour.
if ( ! isset( $options['link_text_color'] ) ) {
$options['link_text_color'] = $options['highlight_color'];
}
return $options;
}
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.