Created
June 21, 2023 20:14
-
-
Save bacoords/005453f94397ae70a781e93c14a4e022 to your computer and use it in GitHub Desktop.
ACF Block Render Starter
This file contains hidden or 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
<?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