Skip to content

Commit da11bc2

Browse files
committed
Documentation
1 parent 6ee6290 commit da11bc2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/features.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,23 @@ $plugin->include(
9292
),
9393
);
9494

95+
// This can also be written using the when() helper.
96+
$plugin->when(
97+
when: fn () => get_current_blog_id() !== 1,
98+
then: fn () => new Ordered(
99+
first: new Library\Plugin_Loader(
100+
plugins: [
101+
'block-visibility/block-visibility.php',
102+
],
103+
),
104+
then: new Group(
105+
new Features\Block_Visibility_Settings(),
106+
new Features\Block_Visibility_Custom_Conditions(),
107+
),
108+
),
109+
),
110+
);
111+
95112
// Load the Google Tag Manager script on templates.
96113
$plugin->include(
97114
new Template_Feature(

0 commit comments

Comments
 (0)