Skip to content

Instantly share code, notes, and snippets.

@bacoords
Created June 21, 2023 20:14
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/005453f94397ae70a781e93c14a4e022 to your computer and use it in GitHub Desktop.
Save bacoords/005453f94397ae70a781e93c14a4e022 to your computer and use it in GitHub Desktop.
ACF Block Render Starter
<?php
/**
* ACF Block Template.
*
* @param array $block The block settings and attributes.
* @param string $content The block inner HTML (empty).
* @param bool $is_preview True during backend preview render.
* @param int $post_id The post ID the block is rendering content against.
* This is either the post ID currently being displayed inside a query loop,
* or the post ID of the post hosting this block.
* @param array $context The context provided to the block by the post or it's parent block.
*
* @package wpdev
*/
?>
<section <?php echo ( ! $is_preview ) ? get_block_wrapper_attributes() : ''; ?>>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment