Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created February 15, 2021 11:55
Show Gist options
  • Save plugin-republic/17a661a8a7ff3644ca870ec9ede768ed to your computer and use it in GitHub Desktop.
Save plugin-republic/17a661a8a7ff3644ca870ec9ede768ed to your computer and use it in GitHub Desktop.
<?php
/**
* Filter the step value for min and max values
*/
function prefix_min_max_val_step( $step, $item ) {
return 0.01;
}
add_filter( 'pewc_min_max_val_step', 'prefix_min_max_val_step', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment