Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
add_action('body_class', function($classes){
if (function_exists('the_gutenberg_project') && gutenberg_post_has_blocks( get_the_ID() ) )
$classes[] = 'using-gutenberg';
return $classes;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment