PluginProbe
WRC Pricing Tables – Responsive CSS3 Pricing Tables / 2.7
WRC Pricing Tables – Responsive CSS3 Pricing Tables v2.7
trunk 1.0 1.1 1.2 1.3 1.4 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3 2.3.1 All 42 releases
wrc-pricing-tables / wrc-pricing-tables.php
wrc-pricing-tables.php
95 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Plugin Name: WRC Pricing Tables – Responsive CSS3 Pricing Tables
4 * Plugin URI: http://wordpress.org/plugins/wrc-pricing-tables/
5 * Description: Responsive pricing table plugin developed to display pricing table in a lot more professional way on different posts or pages by SHORTCODE.
6 * Version: 2.7
7 * Requires at least: 5.2
8 * Requires PHP: 7.4
9 * Author: Realwebcare
10 * Author URI: https://www.realwebcare.com/
11 * Text Domain: wrc-pricing-tables
12 * Domain Path: /languages
13 * License: GPL v2 or later
14 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
15 */
16
17 if (!defined('ABSPATH')) {
18 exit; // Exit if accessed directly
19 }
20
21 /**
22 * WRC Pricing Tables Plugin
23 *
24 * Main plugin file that initializes and manages the "WRC Pricing Tables" plugin.
25 *
26 * @package WRC Pricing Tables v2.7 - 7 March, 2026
27 */
28
29 if (!class_exists('WRCPT_Index')) {
30 class WRCPT_Index
31 {
32 private static $instance;
33
34 private function __construct()
35 {
36 // Define plugin-specific constants.
37 $this->define_constants();
38
39 // Load necessary required files.
40 $this->required_files();
41 }
42
43 /**
44 * Public static method to retrieve the singleton instance.
45 */
46 public static function get_instances()
47 {
48 if (self::$instance) {
49 return self::$instance;
50 }
51
52 self::$instance = new self();
53
54 return self::$instance;
55 }
56
57 /**
58 * Defines essential plugin constants.
59 *
60 * This method sets up constants that are used throughout the plugin for easy access
61 * to important paths and URLs, ensuring a consistent and maintainable structure.
62 *
63 * Constants defined:
64 * - `WRCPT_PLUGIN_PATH`: Absolute path to the plugin directory.
65 * - `WRCPT_PLUGIN_URL`: URL to the plugin directory.
66 * - `WRCPT_AUF`: Absolute path to the main plugin file.
67 *
68 * @return void
69 */
70 private function define_constants()
71 {
72 define('WRCPT_PLUGIN_PATH', plugin_dir_path(__FILE__));
73 define('WRCPT_PLUGIN_URL', plugin_dir_url(__FILE__));
74 define('WRCPT_AUF', __FILE__);
75 }
76
77 /**
78 * Includes initialized files for the plugin.
79 *
80 * @return void
81 */
82 private function required_files()
83 {
84 // Initialize the plugin
85 require_once WRCPT_PLUGIN_PATH . 'inc/init-table.php';
86 /* Activation */
87 require_once WRCPT_PLUGIN_PATH . 'action/activate-plugin.php';
88 /* On Delete */
89 require_once WRCPT_PLUGIN_PATH . 'action/uninstall-plugin.php';
90 }
91 }
92 }
93
94 WRCPT_Index::get_instances();
95