Created
November 9, 2022 11:12
-
-
Save VladStorozhenko/5c373e61c4f89a6d24a4a57e11345969 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
register_block_type( 'my_namespace/my_block', [ | |
'render_callback' => 'render_callback', | |
'attributes' => [ | |
'some_string' => [ | |
'default' => 'default string', | |
'type' => 'string' | |
], | |
'some_array' => [ | |
'type' => 'array', | |
'items' => [ | |
'type' => 'string', | |
], | |
] | |
] | |
] ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment