File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,8 +58,10 @@ function wp_is_connector_registered( string $id ): bool {
5858 * @type array $plugin {
5959 * Optional. Plugin data for install/activate UI.
6060 *
61- * @type string $file The plugin's main file path relative to the plugins
62- * directory (e.g. 'my-plugin/my-plugin.php' or 'hello.php').
61+ * @type string $file The plugin's main file path relative to the plugins
62+ * directory (e.g. 'my-plugin/my-plugin.php' or 'hello.php').
63+ * @type callable $is_active Callback to determine whether the plugin is active. Receives no arguments and must return bool.
64+ * Defaults to `__return_true`.
6365 * }
6466 * }
6567 * @phpstan-return ?array{
@@ -120,8 +122,10 @@ function wp_get_connector( string $id ): ?array {
120122 * @type array $plugin {
121123 * Optional. Plugin data for install/activate UI.
122124 *
123- * @type string $file The plugin's main file path relative to the plugins
124- * directory (e.g. 'my-plugin/my-plugin.php' or 'hello.php').
125+ * @type string $file The plugin's main file path relative to the plugins
126+ * directory (e.g. 'my-plugin/my-plugin.php' or 'hello.php').
127+ * @type callable $is_active Callback to determine whether the plugin is active. Receives no arguments and must return bool.
128+ * Defaults to `__return_true`.
125129 * }
126130 * }
127131 * }
You can’t perform that action at this time.
0 commit comments