contact-form

Adds our contact-form shortcode The "child" contact-field shortcode is enabled as needed by the contact-form shortcode handler.


Usage

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

Defined (1)

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

/settings.php  
  1. WPCF7::load_modules(); 
  2.  
  3. /** Shortcodes */ 
  4. add_shortcode( 'contact-form-7', 'wpcf7_contact_form_tag_func' ); 
  5. add_shortcode( 'contact-form', 'wpcf7_contact_form_tag_func' ); 
  6.  
  7. add_action( 'init', 'wpcf7_init' ); 
  8.  
  9. function wpcf7_init() {