1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
final class ITSEC_Away_Mode_Logs { public function __construct() { add_filter( 'itsec_logs_prepare_away_mode_entry_for_list_display', array( $this, 'filter_entry_for_list_display' ) ); }
public function filter_entry_for_list_display( $entry ) { $entry['module_display'] = esc_html__( 'Away Mode', 'better-wp-security' );
if ( 'away-mode-active' === $entry['code'] ) { $entry['description'] = esc_html__( 'Access Blocked', 'better-wp-security' ); }
return $entry; } } new ITSEC_Away_Mode_Logs();
|