bp_email_get_appearance_settings()
Return email appearance settings.
Description
Return
(array)
Source
File: bp-core/bp-core-functions.php
3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 | 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.