ldc-espri-restauration/wp-content/plugins/ninja-forms/includes/Telemetry/MaxMetric.php
Vincent BRIDIER 3e43da409b - hide wp menus
- MAJ WP + plugins + languages
    - Add .env settings
    - Add RGPD settings
    - Hide setting menus
2021-08-05 11:33:33 +02:00

11 lines
No EOL
233 B
PHP

<?php
class NF_Telemetry_MaxMetric extends NF_Telemetry_Metric
{
public function update( $value )
{
$old_max = $this->get();
$new_max = max( $old_max, $value );
return $this->save( $new_max );
}
}