PluginProbe
Activity Logs, User Activity Tracking, Multisite Activity Log from Logtivity / 1.0
Activity Logs, User Activity Tracking, Multisite Activity Log from Logtivity v1.0
3.3.8 trunk 1.0 1.1.0 1.10.0 1.11.0 1.11.1 1.12.0 1.13.0 1.14.0 1.15.0 1.16.0 1.17.0 1.17.1 1.18.0 1.19.0 1.2.0 1.20.0 1.20.1 1.3.0 1.3.1 1.4.0 1.5.0 1.6.0 1.6.1 All 66 releases
logtivity / Logs / Core / Logtivity_Core.php

Logtivity_Core.php in Activity Logs, User Activity Tracking, Multisite Activity Log from Logtivity 1.0, at Logs/Core/Logtivity_Core.php

41 lines 820 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class Logtivity_Core extends Logtivity_Abstract_Logger
4 {
5 public function registerHooks()
6 {
7 add_action( 'upgrader_process_complete', [$this, 'upgradeProcessComplete'], 10, 2);
8 }
9
10 public function upgradeProcessComplete( $upgrader_object, $options )
11 {
12 if ( $options['type'] != 'core' ) {
13 return;
14 }
15
16 if ($options['action'] == 'update') {
17
18 return $this->coreUpdated($upgrader_object, $options);
19
20 }
21
22 if ($options['action'] == 'install') {
23
24 return $this->coreInstalled($upgrader_object, $options);
25
26 }
27 }
28
29 public function coreUpdated($upgrader_object, $options)
30 {
31 return Logtivity_Logger::log('WP Core Updated');
32 }
33
34 public function coreInstalled($upgrader_object, $options)
35 {
36 return Logtivity_Logger::log('WP Core Installed');
37 }
38
39 }
40
41 $Logtivity_Core = new Logtivity_Core;