mc4wp_form

The WordPress Core mc4wp form shortcode.


Usage

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

Defined (2)

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

/includes/class-form-manager.php  
  1. /** 
  2. * Registers the [mc4wp_form] shortcode 
  3. */ 
  4. protected function register_shortcodes() { 
  5. // register shortcodes 
  6. add_shortcode( 'mc4wp_form', array( $this, 'output_form' ) ); 
  7.  
  8. // @deprecated, use [mc4wp_form] instead 
  9. add_shortcode( 'mc4wp-form', array( $this, 'output_form' ) ); 
  10.  
  1. protected function register_shortcodes() { 
  2. // register shortcodes 
  3. add_shortcode( 'mc4wp_form', array( $this, 'output_form' ) ); 
  4.  
  5. // @deprecated, use [mc4wp_form] instead 
  6. add_shortcode( 'mc4wp-form', array( $this, 'output_form' ) ); 
  7.  
  8. /** 
  9. * Register the various JS files used by the plugin 
  10. */