|
Server : LiteSpeed System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64 User : gazetufm ( 1431) PHP Version : 8.1.35 Disable Function : NONE Directory : /home2/gazetufm/dumoshi.com/wp-content/plugins/wp-statistics/src/Abstracts/ | |
|
Path: //home2/gazetufm/dumoshi.com/wp-content/plugins/wp-statistics/src/Abstracts/UnlockedTabView.php
Size: 997 B
Permissions: 0644
<?php
namespace WP_Statistics\Abstracts;
if (!defined('ABSPATH')) exit; // Exit if accessed directly
abstract class UnlockedTabView
{
protected $tab;
protected $page;
public function __construct()
{
add_filter("wp_statistics_{$this->page}_{$this->tab}_locked", '__return_false');
add_filter("wp_statistics_{$this->page}_{$this->tab}_tooltip", [$this, 'getTooltip']);
add_action("wp_statistics_{$this->page}_{$this->tab}_template", [$this, 'view']);
add_action("wp_statistics_{$this->page}_{$this->tab}_data", [$this, 'getData']);
}
/**
* Returns the tooltip for the unlocked tab
* @return string
*/
abstract public function getTooltip();
/**
* Returns the data for the unlocked tab
*
* @return array
*/
public function getData()
{
return [];
}
/**
* Render the view
* @param mixed $args
* @return void
*/
abstract public function view($args);
}