Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/plugins/cookie-law-info/lite/includes/class-modules.php
Назад
<?php /** * Abstract class to handle all the modules on the plugin. * * @package CookieYes\Lite\Includes */ namespace CookieYes\Lite\Includes; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Class Module */ abstract class Modules { /** * Module slug name * * @var string */ protected $module_id = ''; /** * Slug of the main menu * * @var string */ protected static $menu_slug = 'cookie-law-info'; /** * Default capability of menus * * @var string */ protected static $capability = 'manage_options'; /** * All the module translation strings. * * @var [type] */ public $translations = array(); /** * Module constructor. * * @param string $module_id Module identifier. */ public function __construct( $module_id ) { $this->module_id = $module_id; if ( true === $this->is_active() ) { $this->init(); } } /** * Return true if the module is activated * * @return Boolean */ public function is_active() { $module_id = $this->get_module_id(); return apply_filters( "cky_is_module_active_$module_id", true ); } /** * Return the module slug name * * @return string */ public function get_module_id() { return $this->module_id; } /** * Initializes the module. Always executed even if the module is deactivated. * * Do not use __construct in subclasses, use init() instead */ abstract public function init(); }
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка