wpcf7_recaptcha_register_service

The Contact Form 7 wpcf7 recaptcha register service function.

Description

wpcf7_recaptcha_register_service(); 

Usage

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

Defined (1)

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

/modules/recaptcha.php  
  1. function wpcf7_recaptcha_register_service() { 
  2. $integration = WPCF7_Integration::get_instance(); 
  3.  
  4. $categories = array( 
  5. 'captcha' => __( 'CAPTCHA', 'contact-form-7' ) ); 
  6.  
  7. foreach ( $categories as $name => $category ) { 
  8. $integration->add_category( $name, $category ); 
  9.  
  10. $services = array( 
  11. 'recaptcha' => WPCF7_RECAPTCHA::get_instance() ); 
  12.  
  13. foreach ( $services as $name => $service ) { 
  14. $integration->add_service( $name, $service );