Last active
March 20, 2016 10:41
-
-
Save xeiter/460dad125e60601a7c02 to your computer and use it in GitHub Desktop.
WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$all_forms = RGFormsModel::get_forms( null, 'title' ); | |
$form_options = array(); | |
foreach ( $all_forms as $form ) { | |
$form_options[ $form->title ] = $form->id; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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