# charitable/1.8.13/templates/shortcodes/forgot-password.php

Charitable – Donation &amp; Fundraising Platform (Donation Forms, Recurring Donations &amp; Fundraising Campaigns), version 1.8.13. 77 lines.

- Page: https://pluginprobe.com/plugins/charitable/1.8.13/code/templates/shortcodes/forgot-password.php
- Raw: https://pluginprobe.com/plugins/charitable/1.8.13/raw/templates/shortcodes/forgot-password.php
- Modified: 2026-01-01T16:41:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/charitable/1.8.13/code/templates/shortcodes/forgot-password.php#L10-L20`.

```php
<?php
/**
 * The template used to display the forgot password form. Provided here primarily as a way to make it easier to override using theme templates.
 *
 * @author  Rafe Colton
 * @package Charitable/Templates/Account
 * @since   1.4.0
 * @version 1.6.29
 * @version 1.8.8.6
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$charitable_form = $view_args['form'];

?>
<div class="charitable-forgot-password-form">
	<?php
	/**
	 * Do something before the forgot password form.
	 *
	 * @since 1.4.0
	 *
	 * @param array $view_args Shortcode attributes.
	 */
	do_action( 'charitable_forgot_password_before', $view_args );

	?>
	<form id="lostpasswordform" class="charitable-form" action="<?php echo esc_url( wp_lostpassword_url() ); ?>" method="post">
		<?php
		/**
		 * Do something before rendering the form fields.
		 *
		 * @since 1.4.0
		 *
		 * @param Charitable_Form $form      The form object.
		 * @param array           $view_args All args passed to template.
		 */
		do_action( 'charitable_form_before_fields', $charitable_form, $view_args );

		?>
		<div class="charitable-form-fields cf">
			<?php $charitable_form->view()->render(); ?>
		</div><!-- .charitable-form-fields -->
		<?php
		/**
		 * Do something after rendering the form fields.
		 *
		 * @since 1.4.0
		 *
		 * @param Charitable_Form $form      The form object.
		 * @param array           $view_args All args passed to template.
		 */
		do_action( 'charitable_form_after_fields', $charitable_form, $view_args );

		?>
		<div class="charitable-form-field charitable-submit-field">
			<input type="submit" name="submit" class="<?php echo esc_attr( charitable_get_button_class( 'lostpassword' ) ); ?>" value="<?php esc_attr_e( 'Reset Password', 'charitable' ); ?>" />
		</div>

	</form><!-- #lostpasswordform -->
	<?php
	/**
	 * Do something after the forgot password form.
	 *
	 * @since 1.4.0
	 *
	 * @param array $view_args Shortcode attributes.
	 */
	do_action( 'charitable_forgot_password_after', $view_args );

	?>
</div>

```
