Automattic\WooCommerce\Internal\Api

QueryComplexityRule::maxQueryComplexityErrorMessagepublic staticWC 1.0

Override webonyx's default ("Max query complexity should be {max} but got {count}.").

Method of the class: QueryComplexityRule{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = QueryComplexityRule::maxQueryComplexityErrorMessage( $max, $count ): string;
$max(int) (required)
The configured maximum complexity (unused).
$count(int) (required)
The computed query complexity (unused).

QueryComplexityRule::maxQueryComplexityErrorMessage() code WC 10.9.1

public static function maxQueryComplexityErrorMessage( int $max, int $count ): string {
	return 'Maximum query complexity exceeded.';
}