Skip to content

Commit

Permalink
Updates hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
tommusrhodus committed Mar 23, 2024
1 parent a3afb5a commit f117956
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hello-world/hello-world.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Example block scaffolded with Create Block tool.
* Requires at least: 6.1
* Requires PHP: 7.0
* Version: 1.0.1
* Version: 1.8.0
* Author: The WordPress Contributors
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down
22 changes: 21 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,24 @@ Make sure that project-specific styles and data go into the project code and not

Any partner-specific styling rules should be added via a separate stylesheet that should be registered through https://developer.wordpress.org/themes/features/block-stylesheets/#registering-a-block-stylesheet

### Adding site / partner specific styles
### Adding site / partner specific styles

How to extend or customize blocks in the monorepo, without directly editing the blocks themselves.
It’s important to avoid modifying blocks in the monorepo unless absolutely necessary. In that case please contact an engineering lead to discuss your modification plans. If you’re importing an existing block into your project block and need to modify the blocks functionality, styling, or output, there’s a variety of hooks and filters available to do this.



Re-styling the block: https://developer.wordpress.org/themes/features/block-stylesheets/

Writing block variations: https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/extending-the-query-loop-block/

Extending the block edit and save functions, e.g adding classes, adding new controls, add output wrapper: https://gutenberghub.com/how-to-create-block-visibility-extension/

Modifying block output: https://developer.wordpress.org/reference/hooks/render_block/
https://developer.wordpress.org/reference/hooks/render_block_this-name/

Modify block.json params: https://developer.wordpress.org/reference/hooks/register_block_type_args/

Enqueue/dequeue stylesheets and scripts from block.json: https://developer.wordpress.org/reference/hooks/register_block_type_args/

https://developer.wordpress.org/block-editor/reference-guides/filters/block-filters/

0 comments on commit f117956

Please sign in to comment.