bw_contact_form_id() – Return a unique contact form ID

You appear to be a bot. Output may be restricted

Description

Return a unique contact form ID

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_id

Source

File name: oik/shortcodes/oik-contact-form.php
Lines:

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 Trac