Skip to content

Instantly share code, notes, and snippets.

@danielmcclure
Created October 23, 2023 21:50
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 danielmcclure/24d99ef2b57460861206dfb601b6b44c to your computer and use it in GitHub Desktop.
Save danielmcclure/24d99ef2b57460861206dfb601b6b44c to your computer and use it in GitHub Desktop.
Enable Custom ACF Blocks in Newsletter Glue
<?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