Automattic\WooCommerce\Internal\Api
QueryDepthRule::maxQueryDepthErrorMessage
Override webonyx's default ("Max query depth should be {max} but got {count}.").
Method of the class: QueryDepthRule{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = QueryDepthRule::maxQueryDepthErrorMessage( $max, $count ): string;
- $max(int) (required)
- The configured maximum depth (unused).
- $count(int) (required)
- The computed query depth (unused).
QueryDepthRule::maxQueryDepthErrorMessage() QueryDepthRule::maxQueryDepthErrorMessage code WC 10.9.1
public static function maxQueryDepthErrorMessage( int $max, int $count ): string {
return 'Maximum query depth exceeded.';
}