File "mod.php"
Full Path: /home/vantageo/public_html/cache/cache/cache/cache/.wp-cli/wp-content/plugins/woo-product-filter/modules/overview/mod.php
File size: 766 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
class OverviewWpf extends ModuleWpf {
public function init() {
if ( is_admin() ) {
add_action( 'admin_notices', array( $this, 'showAdminInfo' ) );
}
DispatcherWpf::addFilter('mainAdminTabs', array($this, 'addAdminTab'));
}
public function addAdminTab( $tabs ) {
if (!FrameWpf::_()->isWCLicense()) {
$tabs['overview'] = array(
'label' => esc_html__('Overview', 'woo-product-filter'), 'callback' => array($this, 'getOverviewTabContent'), 'fa_icon' => 'fa-info-circle', 'sort_order' => 5, 'is_main' => true,
);
}
return $tabs;
}
public function getOverviewTabContent() {
return $this->getView()->getOverviewTabContent();
}
public function showAdminInfo() {
return $this->getView()->showAdminInfo();
}
}