Answers for "if is gutenberg page php wp"

PHP
0

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;
		}
	}
Posted by: Guest on June-16-2020

Browse Popular Code Answers by Language