Skip to content

Commit 4887497

Browse files
committed
2 parents 6041e4f + a677f46 commit 4887497

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# WPGraphQL Widgets (Queries)
2+
*This Plugin is a first attempt. So there might be some bugs.*
3+
24
This plugin registers for each active widget a new widget type which exposes all settings of the widget (and for some widgets a `rendered` field [more here](#rendered-field)) and implements the `WidgetInterface` which exposes the following fields.
35
```
46
WidgetInterface {
@@ -55,7 +57,7 @@ You can install and activate it just like any other WordPress plugin.
5557
}
5658
```
5759
#### Rendered field
58-
For the `WPNavMenuWidget`, `WPMediaImageWidget`, `WPWidgetRecentPosts`, `WPWidgetCategories`, `WPWidgetPages` and `WPWidgetRecentComments` types there is also `rendered` field which is a connection to their WPGraphQL type. Here is an example which gives you the menu of a menu widget.
60+
For the `WPNavMenuWidget`, `WPMediaImageWidget`, `WPWidgetRecentPosts`, `WPWidgetCategories`, `WPWidgetPages` and `WPWidgetRecentComments` types there is also `rendered` field which is a connection to their WPGraphQL type. Here is an example which would give you the menu of a menu widget.
5961
```graphql
6062
widget(id: "nav_menu-3") {
6163
databaseId

0 commit comments

Comments
 (0)