self::get_module_name(), 'blocklist_autosync' => esc_html__( 'Permanently Blocked IPs', 'defender-security' ), ); } /** * Get the module name. * * @return string The module name. */ public static function get_module_name(): string { return esc_html__( 'Custom IP List', 'defender-security' ); } /** * Get the module state based on the given flag. * * @param bool $flag The flag indicating the module state. * * @return string The module state, either 'active' or 'inactive'. */ public static function get_module_state( $flag ): string { return $flag ? esc_html__( 'active', 'defender-security' ) : esc_html__( 'inactive', 'defender-security' ); } }