wpcf7_editor_panel_form

The Contact Form 7 wpcf7 editor panel form function.

Description

wpcf7_editor_panel_form( $post ); 

Parameters (1)

0. $post
The post.

Usage

  1. if ( !function_exists( 'wpcf7_editor_panel_form' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/admin/includes/editor.php'; 
  3.  
  4. // The post. 
  5. $post = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpcf7_editor_panel_form($post); 
  9.  

Defined (1)

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

/admin/includes/editor.php  
  1. function wpcf7_editor_panel_form( $post ) { 
  2. ?> 
  3. <h2><?php echo esc_html( __( 'Form', 'contact-form-7' ) ); ?></h2> 
  4.  
  5. <?php 
  6. $tag_generator = WPCF7_TagGenerator::get_instance(); 
  7. $tag_generator->print_buttons(); 
  8. ?> 
  9.  
  10. <textarea id="wpcf7-form" name="wpcf7-form" cols="100" rows="24" class="large-text code" data-config-field="form.body"><?php echo esc_textarea( $post->prop( 'form' ) ); ?></textarea> 
  11. <?php