Last active
August 13, 2025 06:48
-
-
Save plugin-republic/a083e3465192612fbea3b31bf3c728f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Return a step value of 100 for a specific field ID | |
* Update the field ID in line 8 below | |
* Update the step value in line 9 if you wish | |
*/ | |
function demo_number_field_step( $step, $item ) { | |
if( $item['field_id'] == 12345 ) { | |
return 100; | |
} | |
return $step; | |
} | |
add_filter( 'pewc_number_field_step', 'demo_number_field_step', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment