close
Skip to content

How to use DataForm to create plugin settings pages #437

@justintadlock

Description

@justintadlock

Discussed in #433

Originally posted by meszarosrob December 8, 2025
The https://developer.wordpress.org/news/2024/03/how-to-use-wordpress-react-components-for-plugin-pages/ is (hopefully) a good intro for anybody who might want to use React for their plugin's settings page.

However, with recent developments in the https://developer.wordpress.org/block-editor/reference-guides/packages/packages-dataviews/, the creation of relatively simple settings pages could also be done using just the DataForm.

I think it would be educational to take the settings page of https://developer.wordpress.org/news/2024/03/how-to-use-wordpress-react-components-for-plugin-pages/ and show how that could be achieved using DataForm.

While there's an overlap with #412, that seems more focused on DataViews and its angle seems different.


Still an early draft, but something like this: https://docs.google.com/document/d/1OWPnZGoKXfhc_AorN0zyexl1orXUsTzwHCEtkWsetmA/edit?usp=sharing

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Published (Done)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions