PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 2.8.23.4
Pods – Custom Content Types and Fields v2.8.23.4
2.7.31.4 2.8.23.5 2.9.19.5 3.0.10.5 3.1.4.3 3.2.8.4 3.3.9.2 2.8.23.4 2.9.19.4 3.0.10.4 3.1.4.2 3.2.8.3 3.3.9.1 trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / tribe-common / src / Tribe / Service_Providers / Crons.php
pods / tribe-common / src / Tribe / Service_Providers Last commit date
Body_Classes.php 2 weeks ago Crons.php 2 weeks ago Debug_Bar.php 2 weeks ago Dialog.php 2 weeks ago PUE.php 2 weeks ago Processes.php 2 weeks ago Promoter.php 2 weeks ago Shortcodes.php 2 weeks ago Tooltip.php 2 weeks ago Widgets.php 2 weeks ago
Crons.php
38 lines
1 <?php
2 /**
3 * Handles common cron functions.
4 *
5 * @since 4.12.6
6 *
7 * @package Tribe\Service_Providers
8 */
9
10 namespace Tribe\Service_Providers;
11
12 use Tribe\DB_Lock;
13
14 /**
15 * Class Crons
16 *
17 * @since 4.12.6
18 *
19 * @package Tribe\Service_Providers
20 */
21 class Crons extends \tad_DI52_ServiceProvider {
22
23 /**
24 * Registers the filters required by the provider to manage cron processes.
25 *
26 * @since 4.12.6
27 */
28 public function register() {
29 // Schedule a cron event happening once a day.
30 if ( ! wp_get_schedule( 'tribe_daily_cron' ) ) {
31 wp_schedule_event( time(), 'daily', 'tribe_daily_cron' );
32 }
33
34 // Register actions that should happen on that hook.
35 add_action( 'tribe_daily_cron', [ DB_Lock::class, 'prune_stale_db_locks' ] );
36 }
37 }
38