stats = [
'total' => isset( $stats['total'] ) ? (int) $stats['total'] : 0,
'clean' => isset( $stats['clean'] ) ? (int) $stats['clean'] : 0,
'spam' => isset( $stats['spam'] ) ? (int) $stats['spam'] : 0,
'failed' => isset( $stats['failed'] ) ? (int) $stats['failed'] : 0,
];
}
/**
* Render the stats grid HTML.
*
* @since 1.1.0
*/
public function render(): void {
?>
render_stat(
esc_html__( 'Total', 'activelayer-anti-spam-spam-protection-for-forms-comments' ),
$this->stats['total'],
'total'
);
$this->render_stat(
esc_html__( 'Clean', 'activelayer-anti-spam-spam-protection-for-forms-comments' ),
$this->stats['clean'],
'clean'
);
$this->render_stat(
esc_html__( 'Spam', 'activelayer-anti-spam-spam-protection-for-forms-comments' ),
$this->stats['spam'],
'spam'
);
$this->render_stat(
esc_html__( 'Failed', 'activelayer-anti-spam-spam-protection-for-forms-comments' ),
$this->stats['failed'],
'failed'
);
?>