golden hour
/home/godaofbq/dev.hyperredbed.com/wp-content/plugins/shopengine/base
⬆️ Go Up
Upload
File/Folder
Size
Actions
api.php
1.01 KB
Del
OK
common.php
647 B
Del
OK
cpt.php
586 B
Del
OK
list-model.php
3.61 KB
Del
OK
widget-config.php
870 B
Del
OK
widget.php
1.75 KB
Del
OK
Edit: common.php
<?php namespace ShopEngine\Base; defined('ABSPATH') || exit; /** * Common abstract Class. * Get common plugin information for name, title, dir, base, url etc * * @since 1.0.0 */ abstract class Common { public function get_name() { return null; } public function get_title() { return $this->get_name(); } public function get_dir() { return dirname(__FILE__); } public function get_base() { return str_replace(\ShopEngine::plugin_dir(), '', $this->get_dir()); return $this->get_dir(); } public function get_url() { return \ShopEngine::plugin_url() . $this->get_base(); } abstract public function init(); }
Save