Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

if is gutenberg page php wp

function is_gutenberg() {
		
		global $post;
		
		if ( function_exists( 'has_blocks' ) && has_blocks( $post->ID ) ) {
			return true;
		} else {
			return false;
		}
	}
 
PREVIOUS NEXT
Tagged: #gutenberg #page #php #wp
ADD COMMENT
Topic
Name
9+5 =