Si c'est la page Gutenberg PHP WP
function is_gutenberg() {
global $post;
if ( function_exists( 'has_blocks' ) && has_blocks( $post->ID ) ) {
return true;
} else {
return false;
}
}
Andrew Lautenbach