Created
March 14, 2023 11:28
-
-
Save alanef/098b4bd172bb99d73dc01576c87703e5 to your computer and use it in GitHub Desktop.
Set cleardown time
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 | |
/* | |
* Plugin Name: Set Action Scheduler clear down interval | |
* Description: Set Action Scheduler clear down interval | |
* Version: 1.0.0 | |
*/ | |
add_filter('action_scheduler_retention_period', function() { | |
return 2 * DAY_IN_SECONDS; // two days | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment