PluginProbe ʕ •ᴥ•ʔ
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution / 1.5.1
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution v1.5.1
4.9.1 4.9.0 2.0.0 2.1.0 2.2.0 2.2.1 2.2.2 2.3.0 2.4.0 2.5.0 2.5.1 3.0.0 3.1.0 3.1.1 4.0.0 4.0.1 4.1.0 4.1.1 4.2.0 4.2.1 4.3.0 4.3.1 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.6.8 4.6.9 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.7.6 4.7.7 4.7.8 4.7.9 4.8.0 4.8.1 4.8.2 4.8.3 4.8.4 4.8.5 4.8.6 4.8.7 4.8.8 4.8.9 trunk 0.1.2-beta 0.1.3-beta 0.1.4-beta 1.0.0 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.5.0 1.5.1 1.6.0 1.6.1 1.7.0 1.8.0 1.8.1 1.9.0
shopengine / base / common.php
shopengine / base Last commit date
api.php 5 years ago common.php 5 years ago cpt.php 5 years ago list-model.php 4 years ago widget-config.php 5 years ago widget.php 4 years ago
common.php
44 lines
1 <?php
2
3 namespace ShopEngine\Base;
4
5 defined('ABSPATH') || exit;
6
7 /**
8 * Common abstract Class.
9 * Get common plugin information for name, title, dir, base, url etc
10 *
11 * @since 1.0.0
12 */
13 abstract class Common {
14
15 public function get_name() {
16 return null;
17 }
18
19
20 public function get_title() {
21 return $this->get_name();
22 }
23
24
25 public function get_dir() {
26 return dirname(__FILE__);
27 }
28
29
30 public function get_base() {
31 return str_replace(\ShopEngine::plugin_dir(), '', $this->get_dir());
32
33 return $this->get_dir();
34 }
35
36
37 public function get_url() {
38 return \ShopEngine::plugin_url() . $this->get_base();
39 }
40
41
42 abstract public function init();
43
44 }