contact-field

The Jetpack by WordPress.com contact field shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[contact-field]'); 
  1. // variable usage 
  2. $result = do_shortcode('[contact-field]'); 
  3. echo $result;  

Defined (1)

The shortcode is defined in the following location(s).

/modules/contact-form/grunion-contact-form.php  
  1. /* Adds our contact-form shortcode 
  2. * The "child" contact-field shortcode is enabled as needed by the contact-form shortcode handler 
  3. */ 
  4. function add_shortcode() { 
  5. add_shortcode( 'contact-form', array( 'Grunion_Contact_Form', 'parse' ) ); 
  6. add_shortcode( 'contact-field', array( 'Grunion_Contact_Form', 'parse_contact_field' ) ); 
  7.  
  8. static function tokenize_label( $label ) { 
  9. return '{' . trim( preg_replace( '#^\d+_#', '', $label ) ) . '}';