Filter: classifai_aws_polly_pre_connect_to_service

apply_filters( 'classifai_aws_polly_pre_connect_to_service', $pre ) → {bool|mixed}

Filters the return value of the connect to services function.

Returning a non-false value from the filter will short-circuit the describe voices request and return early with that value. This filter is useful for E2E tests.

Parameters:
Name Type Description
$pre bool

The value of pre connect to service. Default false. non-false value will short-circuit the describe voices request.

Since:
  • 3.1.0
Source:
Returns:

The filtered value of connect to service.

Type
bool | mixed