Filter: sensei_round_mode

apply_filters( 'sensei_round_mode', $mode, $value, $context, $precision ) → {int}

Filter round mode.

Change the mode for the Sensei_Utils::round function. the mode given will be passed into the php round function

This applies only to PHP version 5.3.0 and greater

Parameters:
Name Type Description
$mode int

Round mode.

$value float

Value to round.

$context string

Context.

$precision int

Precision.

Since:
  • 1.8.5
Source:
Returns:

Filtered round mode.

Type
int