bbpc_display_reply_recaptcha

The reCaptcha for bbPress 2.0 bbpc display reply recaptcha function.

Description

bbpc_display_reply_recaptcha(); 

Usage

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

Defined (1)

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

/bbpress-recaptcha.php  
  1. function bbpc_display_reply_recaptcha() { 
  2.  
  3. $bbpc_options = get_option('bbpc_settings'); 
  4. if( ! current_user_can('manage_options') ) { 
  5. if( is_user_logged_in() && ! isset( $bbpc_options['show_to_logged_in'] ) ) 
  6. return; 
  7.  
  8. $publickey = trim( $bbpc_options['public_key'] ); 
  9. echo recaptcha_get_html( $publickey );