| 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 |
|