wpcf7_admin_integration_page

The Contact Form 7 wpcf7 admin integration page function.

Description

wpcf7_admin_integration_page(); 

Usage

  1. if ( !function_exists( 'wpcf7_admin_integration_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_integration_page(); 
  7.  

Defined (1)

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

/admin/admin.php  
  1. function wpcf7_admin_integration_page() { 
  2. $integration = WPCF7_Integration::get_instance(); 
  3.  
  4. ?> 
  5. <div class="wrap"> 
  6.  
  7. <h1><?php echo esc_html( __( 'Integration with Other Services', 'contact-form-7' ) ); ?></h1> 
  8.  
  9. <?php do_action( 'wpcf7_admin_warnings' ); ?> 
  10. <?php do_action( 'wpcf7_admin_notices' ); ?> 
  11.  
  12. <?php 
  13. if ( isset( $_REQUEST['service'] ) 
  14. && $service = $integration->get_service( $_REQUEST['service'] ) ) { 
  15. $message = isset( $_REQUEST['message'] ) ? $_REQUEST['message'] : ''; 
  16. $service->admin_notice( $message ); 
  17. $integration->list_services( array( 'include' => $_REQUEST['service'] ) ); 
  18. } else { 
  19. $integration->list_services(); 
  20. ?> 
  21.  
  22. </div> 
  23. <?php