PluginProbe
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels / trunk
Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels vtrunk
2.9.1 2.9.0 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 2.0.0 2.1.0 2.2.0 2.3.2 2.3.3 2.3.5 2.3.6 2.3.8 2.3.9 2.4.3 All 37 releases
automatic-youtube-gallery / includes / deactivator.php

deactivator.php in Automatic YouTube Gallery – Embed Auto-Updating YouTube Video Galleries, Feeds, Playlists & Channels trunk, at includes/deactivator.php

42 lines 740 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Fired during plugin deactivation
5 *
6 * @link https://plugins360.com
7 * @since 1.0.0
8 *
9 * @package Automatic_YouTube_Gallery
10 */
11
12 // Exit if accessed directly
13 if ( ! defined( 'WPINC' ) ) {
14 die;
15 }
16
17 /**
18 * AYG_Deactivator class.
19 *
20 * @since 1.0.0
21 */
22 class AYG_Deactivator {
23
24 /**
25 * Called when the plugin is deactivated.
26 *
27 * @since 1.0.0
28 */
29 public static function deactivate() {
30 // Clear the plugin's scheduled cron events so they don't keep firing while the
31 // plugin is inactive.
32 if ( wp_next_scheduled( 'ayg_schedule_weekly' ) ) {
33 wp_clear_scheduled_hook( 'ayg_schedule_weekly' );
34 }
35
36 if ( wp_next_scheduled( 'ayg_cron_schedule' ) ) {
37 wp_clear_scheduled_hook( 'ayg_cron_schedule' );
38 }
39 }
40
41 }
42