Download the PHP package offset/blocks without Composer
On this page you can find all versions of the php package offset/blocks. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download offset/blocks
More information about offset/blocks
Files in offset/blocks
Informations about the package blocks
Blocks - Create Gutenberg blocks more easily
Installation
Use
You can also render the content with a function
Filters and overrides
Filters are automatically added to your blocks to give you greater flexibility in development and customization.
offset_block_attributes
Filter all attributes of all Gutenberg blocks.
Parameters
$attributes
-array
- Block attributes. Default empty array
Example
offset_block_attributes_{block_name}
Filter the attributes of Gutenberg blocks that have the same name.
The block_name
corresponds to the name
parameter in the block.json
file, replacing special characters with _
(example: offset-pack/block-one
-> offset_pack_block_one
).
Parameters
$attributes
-array
- Block attributes. Default empty array
Example
offset_block_content
Filters all contents of all Gutenberg blocks.
Parameters
$content
-string
- Block content. Default empty string.
Example
offset_block_content_{block_name}
Filter the content of Gutenberg blocks that have the same name.
The block_name
corresponds to the name
parameter in the block.json
file, replacing special characters with _
(example: offset-pack/block-one
-> offset_pack_block_one
).
Parameters
$content
-string
- Block content. Default empty string.
Example
offset_block_render_{block_name}
Filter the html of Gutenberg blocks that have the same name.
The block_name
corresponds to the name
parameter in the block.json
file, replacing special characters with _
(example: offset-pack/block-one
-> offset_pack_block_one
).
Parameters
$html
-string
- Block html. Default empty string$attributes
-array
- Block attributes. Default empty array$content
-string
- Block content. Default empty string.
Example
offset_block_is_style_enqueue
Remove styles from all Gutenberg blocks.
Example
offset_block_is_style_enqueue_{block_name}
Remove styles from Gutenberg blocks with the same name.
The block_name
corresponds to the name
parameter in the block.json
file, replacing special characters with _
(example: offset-pack/block-one
-> offset_pack_block_one
).
Example
offset_block_is_script_enqueue
Remove scripts from all Gutenberg blocks.
Example
offset_block_is_script_enqueue_{block_name}
Remove scripts from Gutenberg blocks with the same name.
The block_name
corresponds to the name
parameter in the block.json
file, replacing special characters with _
(example: offset-pack/block-one
-> offset_pack_block_one
).