BP_REST_Account_Settings_Options_Endpoint::bp_rest_settings_pending_email_notice()
Add the ‘pending email change’ message to the settings page.
Description
— from: bp_settings_pending_email_notice().
Return
(void|string)
Source
File: bp-settings/classes/class-bp-rest-account-settings-options-endpoint.php
protected function bp_rest_settings_pending_email_notice() { $pending_email = bp_get_user_meta( bp_displayed_user_id(), 'pending_email_change', true ); if ( empty( $pending_email['newemail'] ) ) { return; } if ( bp_get_displayed_user_email() === $pending_email['newemail'] ) { return; } return sprintf( /* translators: 1: New email. 2: Current email. */ __( 'There is a pending change of your email address to %1$s. Check your email (%2$s) for the verification link.', 'buddyboss' ), '<strong>' . esc_html( $pending_email['newemail'] ) . '</strong>', '<strong>' . esc_html( bp_get_displayed_user_email() ) . '</strong>' ); }
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.