Skip to content

Commit a0d8953

Browse files
committed
Add missing is_active docs in wp_get_connector() and wp_get_connectors()
1 parent 43d999b commit a0d8953

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/wp-includes/connectors.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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
* }

0 commit comments

Comments
 (0)