Skip to content

Instantly share code, notes, and snippets.

@Auke1810
Last active October 26, 2023 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Auke1810/1db751ddeb2663e0fb9ed198fe5b4099 to your computer and use it in GitHub Desktop.
Save Auke1810/1db751ddeb2663e0fb9ed198fe5b4099 to your computer and use it in GitHub Desktop.
Change batch time
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