Skip to content

Instantly share code, notes, and snippets.

@xeiter
Last active March 20, 2016 10:41
Show Gist options
  • Save xeiter/460dad125e60601a7c02 to your computer and use it in GitHub Desktop.
Save xeiter/460dad125e60601a7c02 to your computer and use it in GitHub Desktop.
WordPress
<?php
$all_forms = RGFormsModel::get_forms( null, 'title' );
$form_options = array();
foreach ( $all_forms as $form ) {
$form_options[ $form->title ] = $form->id;
}
<?php
add_action( 'register_form', 'xeiter_extra_registration_fields', 1 );
function xeiter_extra_registration_fields() {
$output = <<<MULTI
<p>
<label>First Name<br/>
<input type="text" name="first_name" id="first_name" class="input" value="" size="25" tabindex="30" />
</label>
</p>
<p>
<label>Last Name<br/>
<input type="text" name="last_name" id="last_name" class="input" value="" size="25" tabindex="40" />
</label>
</p>
MULTI;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment