PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / trunk
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More vtrunk
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 47 releases
content-control / classes / Interfaces / Upgrade.php

Upgrade.php in Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More trunk, at classes/Interfaces/Upgrade.php

54 lines 749 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin upgrade.
4 *
5 * @copyright (c) 2021, Code Atlantic LLC.
6 *
7 * @package ContentControl
8 */
9
10 namespace ContentControl\Interfaces;
11
12 defined( 'ABSPATH' ) || exit;
13
14 /**
15 * Localized controller class.
16 */
17 interface Upgrade {
18
19 /**
20 * Return label for this upgrade.
21 *
22 * @return string
23 */
24 public function label();
25
26 /**
27 * Return full description for this upgrade.
28 *
29 * @return string
30 */
31 public function description();
32
33 /**
34 * Check if this upgrade is required.
35 *
36 * @return bool
37 */
38 public function is_required();
39
40 /**
41 * Check if prerequisites are met.
42 *
43 * @return bool
44 */
45 public function prerequisites_met();
46
47 /**
48 * Run the upgrade.
49 *
50 * @return void|\WP_Error|false
51 */
52 public function run();
53 }
54