Skip to content

Instantly share code, notes, and snippets.

@bacoords
Last active March 15, 2023 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bacoords/7be0c46d0da7ef13a7d36ebde51e7451 to your computer and use it in GitHub Desktop.
Save bacoords/7be0c46d0da7ef13a7d36ebde51e7451 to your computer and use it in GitHub Desktop.
PHP header for a dynamic gutenberg blocks render.php file
<?php
/**
* All of the parameters passed to the function where this file is being required are accessible in this scope:
*
* @param array $attributes The array of attributes for this block.
* @param string $content Rendered block output. ie. <InnerBlocks.Content />.
* @param WP_Block $block The instance of the WP_Block class that represents the block being rendered.
*
* @package gutenberg-examples
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment