PluginProbe
Custom 404 Pro / trunk
Custom 404 Pro vtrunk
3.15.2 3.15.4 3.15.5 3.15.6 3.16.0 3.15.1 3.15.0 3.14.1 3.14.0 3.13.0 trunk 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.5 1.1.6 1.2.0 1.3.10 1.3.12 1.3.5 All 100 releases
custom-404-pro / includes / class-deactivateclass.php

class-deactivateclass.php in Custom 404 Pro trunk, at includes/class-deactivateclass.php

28 lines 559 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Handles plugin deactivation.
4 *
5 * @package Custom_404_Pro
6 */
7
8 /**
9 * Deactivation class.
10 */
11 class DeactivateClass {
12
13 /**
14 * Runs on plugin deactivation.
15 *
16 * Unschedules the daily log-pruning cron event. On multisite, this fires
17 * for the main site only; per-site events on sub-sites will expire naturally.
18 *
19 * @since 3.14.0
20 */
21 public static function deactivate() {
22 $timestamp = wp_next_scheduled( 'custom_404_pro_prune_logs' );
23 if ( $timestamp ) {
24 wp_unschedule_event( $timestamp, 'custom_404_pro_prune_logs' );
25 }
26 }
27 }
28