Block Attributes
Channel: WordPress
Date: 2024-04-04

One of the benefits of building blocks is the ability to allow users to control the block's appearance and behavior via block attributes.

Let's learn how to add attributes to a block, and how to add controls to your block to allow users to change those attributes.
---
View this lesson and others in this course on Learn WordPress:
https://learn.wordpress.org/course/beginner-wordpress-developer/

0:00 Introduction
0:17 Adding attributes to a block
1:46 Access the block's attributes
4:30 Block recovery
5:11 Adding a Settings panel to the block
9:04 Adding a TextControl to the block sidebar
12:05 Additional resources