Skip to content

wpuf_add_post_form_top

Called at top of the form in front-end.

Accepts 2 Parameters.

  • $form_id (integer)
  • $form_settings (array)
function wpuf_add_custom_fields( $form_id, $form_settings ) {
if ( $form_id != 8 ) {
return;
}

?>

<li class="wpuf-el">
<div class="wpuf-fields">
<input type="hidden" name="my_custom_field_1" value="Value 1" />
</div>
</li>
<li class="wpuf-el">
<div class="wpuf-fields">
<input type="hidden" name="my_custom_field_2" value="Value 2" />
</div>
</li>

<?php
}

add_action( 'wpuf_add_post_form_top', 'wpuf_add_custom_fields', 10, 2 );</pre>/p>

WAIT! Don’t Miss Our Biggest Sale of the Year!

BlackFriday

EarlyDeals

Save Up To

81%

on weDevs Products

Hurry! This massive deal disappears when the timer runs out.

00Days00Hour00Min00Sec
Claim Yours & Save Up To 81%