wpcf7_admin_add_new_page

The Contact Form 7 wpcf7 admin add new page function.

Description

wpcf7_admin_add_new_page(); 

Usage

  1. if ( !function_exists( 'wpcf7_admin_add_new_page' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/admin/admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wpcf7_admin_add_new_page(); 
  7.  

Defined (1)

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

/admin/admin.php  
  1. function wpcf7_admin_add_new_page() { 
  2.  
  3. if ( ! $post ) { 
  4. $post = WPCF7_ContactForm::get_template(); 
  5.  
  6. $post_id = -1; 
  7.  
  8. require_once WPCF7_PLUGIN_DIR . '/admin/includes/editor.php'; 
  9. require_once WPCF7_PLUGIN_DIR . '/admin/edit-contact-form.php';