PluginProbe
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO / trunk
Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO vtrunk
1.4.13 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.54 1.3.53 1.3.52 1.3.51 1.3.50 1.3.49 1.3.48 1.3.47 1.3.46 1.3.45 1.3.44 All 176 releases
disco / engine / Base.php

Base.php in Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO trunk, at engine/Base.php

43 lines 726 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Disco
5 *
6 * @package Disco
7 * @author Ohidul Islam <wahid0003@gmail.com>
8 * @copyright 2022 WebAppick
9 * @license GPL 2.0+
10 * @link http://domain.tld
11 */
12
13 namespace Disco\Engine;
14
15 /**
16 * Base skeleton of the plugin
17 */
18 class Base {
19
20 /**
21 * @var array The settings of the plugin.
22 */
23 public $settings = array();
24
25 /**
26 * Initialize the class and get the plugin settings
27 *
28 * @return bool
29 */
30 public function initialize() {
31 return true;
32 }
33
34 /**
35 * Discard any output buffered above DISCO_OB_LEVEL so that debug notices
36 * from other plugins do not prefix the JSON body sent by wp_send_json_*.
37 */
38 protected function clean_buffer(): void {
39 OutputBuffer::clean();
40 }
41
42 }
43