laipower/wp-content/upgrade-temp-backup/plugins/w3-total-cache/UsageStatistics_AdminActions.php

24 lines
339 B
PHP
Raw Normal View History

2024-03-28 09:40:10 +00:00
<?php
namespace W3TC;
class UsageStatistics_AdminActions {
private $_config = null;
public function __construct() {
$this->_config = Dispatcher::config();
}
public function w3tc_ustats_note_disable() {
$this->_config->set( 'stats.enabled', false );
$this->_config->save();
Util_Admin::redirect( array(), true );
}
}