close
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ _See the [full block example](https://github.com/WordPress/block-development-exa

### PHP-only blocks with auto-registration

For blocks that only need server-side rendering, you can register them exclusively in PHP using the [`autoRegister`](/docs/reference-guides/block-api/block-supports.md#auto_register) flag and a `render_callback`. These blocks automatically appear in the editor without requiring any JavaScript registration or client-side code and use [dynamic rendering](/docs/getting-started/fundamentals/static-dynamic-rendering.md).
For blocks that only need server-side rendering, you can register them exclusively in PHP using the [`autoRegister`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#autoregister) flag and a `render_callback`. These blocks automatically appear in the editor without requiring any JavaScript registration or client-side code and use [dynamic rendering](https://developer.wordpress.org/block-editor/getting-started/fundamentals/static-dynamic-rendering/).

```php
register_block_type( 'my-plugin/server-block', array(
Expand Down
Loading