display_name; $donor = new Give_Donor( $user_id, true ); $address = $donor->get_donor_address( array( 'address_type' => 'personal' ) ); $company_name = $donor->get_meta( '_give_donor_company', true ); if ( isset( $_GET['updated'] ) && 'true' === $_GET['updated'] && ! give_get_errors() ) { if ( isset( $_GET['update_code'] ) ) { if ( 1 === absint( $_GET['update_code'] ) ) { printf( '
%1$s %2$s
', esc_html__( 'Success:', 'give' ), esc_html__( 'Your profile has been updated.', 'give' ) ); } } } Give()->notices->render_frontend_notices( 0 ); /** * Fires in the profile editor shortcode, before the form. * * Allows you to add new elements before the form. * * @since 1.0 */ do_action( 'give_profile_editor_before' ); ?> %1$s %2$s', esc_html__( 'Success:', 'give' ), esc_html__( 'Your profile and password has been updated.', 'give' ) ); _e( 'Log in with your new credentials.', 'give' ); echo give_login_form(); break; case '3': printf( '%1$s %2$s
', esc_html__( 'Success:', 'give' ), esc_html__( 'Your password has been updated.', 'give' ) ); _e( 'Log in with your new credentials.', 'give' ); echo give_login_form(); break; default: break; } } } else { _e( 'You need to log in to edit your profile.', 'give' ); echo give_login_form(); } endif;