# charitable/1.6.6/templates/shortcodes/registration.php

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

- Page: https://pluginprobe.com/plugins/charitable/1.6.6/code/templates/shortcodes/registration.php
- Raw: https://pluginprobe.com/plugins/charitable/1.6.6/raw/templates/shortcodes/registration.php
- Modified: 2018-09-17T12:08: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.6.6/code/templates/shortcodes/registration.php#L10-L20`.

```php
<?php
/**
 * The template used to display the registration form.
 *
 * @author  Studio 164a
 * @package Charitable/Templates/Account
 * @since   1.0.0
 * @version 1.5.7
 */

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

$form = $view_args['form'];

/**
 * Do something before rendering the user registration form.
 *
 * @param Charitable_Form $form      The form object.
 * @param array           $view_args All args passed to template.
 */
do_action( 'charitable_user_registration_before', $form, $view_args );

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

	?>
	<div class="charitable-form-fields cf">
		<?php $form->view()->render() ?>
	</div><!-- .charitable-form-fields -->
	<?php

	/**
	 * Do something after rendering the form fields.
	 *
	 * @since 1.0.0
	 *
	 * @param Charitable_Form $form      The form object.
	 * @param array           $view_args All args passed to template.
	 */
	do_action( 'charitable_form_after_fields', $form, $view_args );

	?>
	<div class="charitable-form-field charitable-submit-field">
		<button class="button button-primary" type="submit" name="register"><?php esc_attr_e( 'Register', 'charitable' ) ?></button>
	</div>
</form><!-- #charitable-registration-form -->
<?php

/**
 * Do something after rendering the user registration form.
 *
 * @param Charitable_Form $form      The form object.
 * @param array           $view_args All args passed to template.
 */
do_action( 'charitable_user_registration_after', $form, $view_args );

```
