Snippets: Move Post Meta (date, comments) Above Featured Image

add_filter( 'wpex_post_blocks', function( $blocks, $post_type ) {

	// Available blocks
	$a_blocks = array(
		'header'        => __( 'Header', 'wpex-new-york' ),
		'meta'          => __( 'Meta', 'wpex-new-york' ),
		'media'         => __( 'Media', 'wpex-new-york' ),
		'content'       => __( 'Content', 'wpex-new-york' ),
		'wp_link_pages' => __( 'Next Page Links', 'wpex-new-york' ),
		'tags'          => __( 'Tags', 'wpex-new-york' ),
		'author'        => __( 'Post Author', 'wpex-new-york' ),
		'related'       => __( 'Related Posts', 'wpex-new-york' ),
		'comments'      => __( 'Comments', 'wpex-new-york' ),
		'edit'          => __( 'Edit Link', 'wpex-new-york' ),
	);

	// Set correct blocks
	$blocks = $a_blocks;

	// Remove blocks on passprotected posts
	if ( apply_filters( 'wpex_post_password_required_unset_blocks', true ) && post_password_required() ) {
		unset(
			$blocks['meta'],
			$blocks['wp_link_pages'],
			$blocks['tags'],
			$blocks['author'],
			$blocks['related'],
			$blocks['comments']
		);
	}

	return $blocks;

}, 10, 2 );