1. Home
  2. Filters
  3. Filter reference: wpforms_math_captcha

apply_filters( 'wpforms_math_captcha', array $settings )

Filters setting properties applied to the Custom Captcha addon.

Description

The wpforms_math_captcha filter is applied to an array that sets minimum and maximum numbers, as well as the type of calculations used with those values (addition, multiplication, etc). It can be used to change the integer range and operators allowed in a custom captcha field.

Parameters

$settings
(array) (Required) Minimum integer, maximum integer, and operators that will be used

Source

wpforms-captcha/class-captcha.php

More Information

Below explains what is contained in the array.

$settings = array(
	'min'        => 1,
	'max'        => 15,
	'cal'        => array( '+', '*' ),
);
$settings = apply_filters( 'wpforms_math_captcha', $settings );
Updated on January 17, 2018

Was this article helpful?