Created
April 15, 2020 13:23
-
-
Save sarangs07/7c0ae4cb0999e7d9da59356970a96a12 to your computer and use it in GitHub Desktop.
Change the order status cron 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
/* | |
* How to add the custome code. | |
* | |
* Please follow below instructions: | |
* 1. Copy the below code. | |
* 2. Open your child theme's functions.php file. | |
* 3. Paste the copied code at the very bottom of it & save the file OR upload it on your server/hosting. | |
*/ | |
/** | |
* | |
* Change the order status cron time. | |
* | |
* @param int $time_in_minutes Cron time in minutes. | |
* @return int $time_in_minutes Cron time in minutes. | |
*/ | |
add_filter( 'cartflows_order_status_cron_time', 'in_change_order_status_cron_time' ); | |
function in_change_order_status_cron_time( $time_in_minutes ){ | |
return $time_in_minutes = 10; // Your time value in minutes. e.g: 10. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment