PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 2.6.1
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v2.6.1
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
← All changes | classes/Plugin/Install.php +17 -3 2.0.12.6.1 View file →
@@ -23,8 +23,10 @@
23 23 /**
24 24 * Activation wrapper.
25 25 *
26 26 * @param bool $network_wide Weather to activate network wide.
27 + *
28 + * @return void
27 29 */
28 30 public static function activate_plugin( $network_wide ) {
29 31 self::do_multisite( $network_wide, [ __CLASS__, 'activate_site' ] );
30 32 }
@@ -32,8 +34,10 @@
32 34 /**
33 35 * Deactivation wrapper.
34 36 *
35 37 * @param bool $network_wide Weather to deactivate network wide.
38 + *
39 + * @return void
36 40 */
37 41 public static function deactivate_plugin( $network_wide ) {
38 42 self::do_multisite( $network_wide, [ __CLASS__, 'deactivate_site' ] );
39 43 }
@@ -39,8 +43,10 @@
39 43 }
40 44
41 45 /**
42 46 * Uninstall the plugin.
47 + *
48 + * @return void
43 49 */
44 50 public static function uninstall_plugin() {
45 51 self::do_multisite( true, [ __CLASS__, 'uninstall_site' ] );
46 52 }
@@ -47,11 +53,13 @@
47 53
48 54 /**
49 55 * Handle single & multisite processes.
50 56 *
51 - * @param bool $network_wide Weather to do it network wide.
52 - * @param callable $method Callable method for each site.
53 - * @param array $args Array of extra args.
57 + * @param bool $network_wide Weather to do it network wide.
58 + * @param callable $method Callable method for each site.
59 + * @param array<string,mixed> $args Array of extra args.
60 + *
61 + * @return void
54 62 */
55 63 private static function do_multisite( $network_wide, $method, $args = [] ) {
56 64 global $wpdb;
57 65
@@ -87,8 +95,10 @@
87 95 }
88 96
89 97 /**
90 98 * Activate on single site.
99 + *
100 + * @return void
91 101 */
92 102 public static function activate_site() {
93 103 // Add a temporary option that will fire a hookable action on next load.
94 104 \set_transient( '_content_control_installed', true, 3600 );
@@ -108,8 +118,10 @@
108 118 }
109 119
110 120 /**
111 121 * Deactivate on single site.
122 + *
123 + * @return void
112 124 */
113 125 public static function deactivate_site() {
114 126 }
115 127
@@ -114,8 +126,10 @@
114 126 }
115 127
116 128 /**
117 129 * Uninstall single site.
130 + *
131 + * @return void
118 132 */
119 133 public static function uninstall_site() {
120 134 }
121 135 }