Description
Returns a unique contact form ID.This should allow more than one contact form on a page.
Usage
$string = bw_contact_form_id( $set );Parameters
- $set
- ( bool ) optional – increment the ID if true
Returns
string the contact form ID – format oiku_contact-$bw_contact_form_idSource
File name: oik/shortcodes/oik-contact-form.phpLines:
1 to 7 of 7
function bw_contact_form_id( $set=false ) { static $bw_contact_form_id = 0; if ( $set ) { $bw_contact_form_id++; } return( "oiku_contact-$bw_contact_form_id" ); }View on GitHub View on Trac
Called by
1 to 3 of 3
- bw_contact_form_submit_button() – Create the submit button for the contact form
- bw_display_contact_form() – Show/process a contact form using oik
- Tests_shortcodes_oik_contact_form::replace_contact_form_id() – We need to set the contact form ID in the generated html to a predefined value `<input type="submit" name="oiku_contact-2" value="Contact mE" />`
