wpcf7_welcome_panel

The Contact Form 7 wpcf7 welcome panel function.

Description

wpcf7_welcome_panel(); 

Usage

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

Defined (1)

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

/admin/includes/welcome-panel.php  
  1. function wpcf7_welcome_panel() { 
  2. $classes = 'welcome-panel'; 
  3.  
  4. $vers = (array) get_user_meta( get_current_user_id(),  
  5. 'wpcf7_hide_welcome_panel_on', true ); 
  6.  
  7. if ( wpcf7_version_grep( wpcf7_version( 'only_major=1' ), $vers ) ) { 
  8. $classes .= ' hidden'; 
  9.  
  10. ?> 
  11. <div id="welcome-panel" class="<?php echo esc_attr( $classes ); ?>"> 
  12. <?php wp_nonce_field( 'wpcf7-welcome-panel-nonce', 'welcomepanelnonce', false ); ?> 
  13. <a class="welcome-panel-close" href="<?php echo esc_url( menu_page_url( wpcf7, false ) ); ?>"><?php echo esc_html( __( 'Dismiss', 'contact-form-7' ) ); ?></a> 
  14.  
  15. <div class="welcome-panel-content"> 
  16. <div class="welcome-panel-column-container"> 
  17.  
  18. <div class="welcome-panel-column"> 
  19. <h3><span class="dashicons dashicons-shield"></span> <?php echo esc_html( __( "Getting spammed? You have protection.", 'contact-form-7' ) ); ?></h3> 
  20.  
  21. <p><?php echo esc_html( __( "Spammers target everything; your contact forms aren’t an exception. Before you get spammed, protect your contact forms with the powerful anti-spam features Contact Form 7 provides.", 'contact-form-7' ) ); ?></p> 
  22.  
  23. <p><?php echo sprintf( esc_html( __( 'Contact Form 7 supports spam-filtering with %1$s. Intelligent %2$s blocks annoying spambots. Plus, using %3$s, you can block messages containing specified keywords or those sent from specified IP addresses.', 'contact-form-7' ) ), wpcf7_link( __( 'https://contactform7.com/spam-filtering-with-akismet/', 'contact-form-7' ), __( 'Akismet', 'contact-form-7' ) ), wpcf7_link( __( 'https://contactform7.com/recaptcha/', 'contact-form-7' ), __( 'reCAPTCHA', 'contact-form-7' ) ), wpcf7_link( __( 'https://contactform7.com/comment-blacklist/', 'contact-form-7' ), __( 'comment blacklist', 'contact-form-7' ) ) ); ?></p> 
  24. </div> 
  25.  
  26. <div class="welcome-panel-column"> 
  27. <h3><span class="dashicons dashicons-editor-help"></span> <?php echo esc_html( __( "Before you cry over spilt mail…", 'contact-form-7' ) ); ?></h3> 
  28.  
  29. <p><?php echo esc_html( __( "Contact Form 7 doesn’t store submitted messages anywhere. Therefore, you may lose important messages forever if your mail server has issues or you make a mistake in mail configuration.", 'contact-form-7' ) ); ?></p> 
  30.  
  31. <p><?php echo sprintf( esc_html( __( 'Install a message storage plugin before this happens to you. %s saves all messages through contact forms into the database. Flamingo is a free WordPress plugin created by the same author as Contact Form 7.', 'contact-form-7' ) ), wpcf7_link( __( 'https://contactform7.com/save-submitted-messages-with-flamingo/', 'contact-form-7' ), __( 'Flamingo', 'contact-form-7' ) ) ); ?></p> 
  32. </div> 
  33.  
  34. </div> 
  35. </div> 
  36. </div> 
  37. <?php