wpcf7_admin_menu

The Contact Form 7 wpcf7 admin menu function.

Description

wpcf7_admin_menu(); 

Usage

  1. if ( !function_exists( 'wpcf7_admin_menu' ) ) { 
  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_menu(); 
  7.  

Defined (1)

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

/admin/admin.php  
  1. function wpcf7_admin_menu() { 
  2. global $_wp_last_object_menu; 
  3.  
  4. $_wp_last_object_menu++; 
  5.  
  6. add_menu_page( __( 'Contact Form 7', 'contact-form-7' ),  
  7. __( 'Contact', 'contact-form-7' ),  
  8. 'wpcf7_read_contact_forms', wpcf7,  
  9. 'wpcf7_admin_management_page', 'dashicons-email',  
  10. $_wp_last_object_menu ); 
  11.  
  12. $edit = add_submenu_page( wpcf7,  
  13. __( 'Edit Contact Form', 'contact-form-7' ),  
  14. __( 'Contact Forms', 'contact-form-7' ),  
  15. 'wpcf7_read_contact_forms', wpcf7,  
  16.  
  17.  
  18. $addnew = add_submenu_page( wpcf7,  
  19. __( 'Add New Contact Form', 'contact-form-7' ),  
  20. __( 'Add New', 'contact-form-7' ),  
  21. 'wpcf7_edit_contact_forms', 'wpcf7-new',  
  22.  
  23.  
  24. $integration = WPCF7_Integration::get_instance(); 
  25.  
  26. if ( $integration->service_exists() ) { 
  27. $integration = add_submenu_page( wpcf7,  
  28. __( 'Integration with Other Services', 'contact-form-7' ),  
  29. __( 'Integration', 'contact-form-7' ),  
  30. 'wpcf7_manage_integration', 'wpcf7-integration',  
  31.