By default, Number fields can be increased in increments of 1. If you want to change this value, e.g. to use decimals, add this snippet:
<?php | |
/** | |
* Filter the step parameter in Number fields to return decimals | |
*/ | |
function prefix_number_field_step( $step, $item ) { | |
return 0.01; | |
} | |
add_filter( 'pewc_number_field_step', 'prefix_number_field_step', 10, 2 ); |