Last active
October 26, 2023 12:28
-
-
Save Auke1810/1db751ddeb2663e0fb9ed198fe5b4099 to your computer and use it in GitHub Desktop.
Change batch time
This file contains 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
function set_batch_time( $batch_time ) { | |
// the default batch time limit is set to 30 seconds. | |
// It means that each 30 seconds a new batch is started or when 90% of the max memory limit is reached. | |
// use the below time to change the default 30 second limit. | |
return 20; | |
} | |
add_filter( 'wppfm_default_time_limit', 'set_batch_time' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment