WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.5k stars 4.2k forks source link

Improve widgets documentation #33584

Open noisysocks opened 3 years ago

noisysocks commented 3 years ago

From https://make.wordpress.org/core/2021/06/29/block-based-widgets-editor-in-wordpress-5-8/#comment-41552:

No documentation how to add icons, no documentation how to add styles and scripts to legacy widget. No documentation how to make blocks only for Widgets, Customizer or for Post editor.

Most of the APIs for this are the same as the regular block editor's, but let's explicitly document it.

ryanwelcher commented 1 year ago

@sagarnasit is going to take this one!

sagarnasit commented 1 year ago

@ryanwelcher I have updated documentation about legacy widget style and script loading. But I am not able to confirm that blocks can be restricted for Widgets, Customizer, or Post Editor only.