Captcha WP AFFILIATES
-
Hi!
Please tell me how to integrate Сaptcha in the WP Affiliates plugin.
WP Affiliates has the following filters:
/** * Returns captcha field markup. * * @return captcha field markup */ static function captcha_get( $value ) { $style = 'display:none;'; $field = '<input name="' . Affiliates_Utility::$captcha_field_id . '" id="' . Affiliates_Utility::$captcha_field_id . '" class="' . Affiliates_Utility::$captcha_field_id . ' field" style="' . $style . '" value="' . esc_attr( $value ) . '" type="text"/>'; $field = apply_filters( 'affiliates_captcha_get', $field, $value ); return $field; } /** * Validates a captcha field. * * @param string $field_value field content * @return true if the field validates */ static function captcha_validates( $field_value = null ) { $result = false; if ( empty( $field_value ) ) { $result = true; } $result = apply_filters( 'affiliates_captcha_validate', $result, $field_value ); return $result; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Captcha WP AFFILIATES’ is closed to new replies.