settings->slug ); } /** * Output the settings component root slug. * * @since 1.5.0 */ function bp_settings_root_slug() { echo esc_attr( bp_get_settings_root_slug() ); } /** * Return the settings component root slug. * * @since 1.5.0 * * @return string */ function bp_get_settings_root_slug() { /** * Filters the Settings component root slug. * * @since 1.5.0 * * @param string $root_slug Settings component root slug. */ return apply_filters( 'bp_get_settings_root_slug', buddypress()->settings->root_slug ); } /** * Add the 'pending email change' message to the settings page. * * @since 2.1.0 */ function bp_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; } $dismiss_url = wp_nonce_url( add_query_arg( 'dismiss_email_change', 1, bp_displayed_user_url( bp_members_get_path_chunks( array( bp_get_settings_slug() ) ) ) ), 'bp_dismiss_email_change' ); ?>
' . esc_html( $pending_email['newemail'] ) . ''
);
?>
' . esc_html( $pending_email['newemail'] ) . '',
'' . esc_html__( 'cancel the pending change', 'buddypress' ) . ''
);
?>