wpcf7_admin_bulk_validate_page

The Contact Form 7 wpcf7 admin bulk validate page function.

Description

wpcf7_admin_bulk_validate_page(); 

Usage

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

Defined (1)

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

/admin/admin.php  
  1. function wpcf7_admin_bulk_validate_page() { 
  2. $contact_forms = WPCF7_ContactForm::find(); 
  3. $count = WPCF7_ContactForm::count(); 
  4.  
  5. $submit_text = sprintf( 
  6. _n( 
  7. "Validate %s Contact Form Now",  
  8. "Validate %s Contact Forms Now",  
  9. $count, 'contact-form-7' ),  
  10. number_format_i18n( $count ) ); 
  11.  
  12. ?> 
  13. <div class="wrap"> 
  14.  
  15. <h1><?php echo esc_html( __( 'Validate Configuration', 'contact-form-7' ) ); ?></h1> 
  16.  
  17. <form method="post" action=""> 
  18. <input type="hidden" name="action" value="validate" /> 
  19. <?php wp_nonce_field( 'wpcf7-bulk-validate' ); ?> 
  20. <p><input type="submit" class="button" value="<?php echo esc_attr( $submit_text ); ?>" /></p> 
  21. </form> 
  22.  
  23. <?php echo wpcf7_link( __( 'https://contactform7.com/configuration-validator-faq/', 'contact-form-7' ), __( 'FAQ about Configuration Validator', 'contact-form-7' ) ); ?> 
  24.  
  25. </div> 
  26. <?php