Created
October 23, 2023 21:50
-
-
Save danielmcclure/24d99ef2b57460861206dfb601b6b44c to your computer and use it in GitHub Desktop.
Enable Custom ACF Blocks in Newsletter Glue
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 | |
// Update Allowed Blocks in Newsletter Glue | |
function add_custom_allowed_blocks( $blocks ) { | |
// Add your custom block to the array | |
$blocks[] = 'acf/my-block'; // Change to your block's actual name. Use hyphens instead of underscores. | |
return $blocks; // Return modified array | |
} | |
add_filter( 'newsletterglue_allowed_block_list', 'add_custom_allowed_blocks', 10 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment