src/App/Controller/Posts.php
public function _wp_seo_meta_box( $post ) {
		?>
		<?php wp_nonce_field( 'wp-seo-meta-box-action', 'wp-seo-meta-box-nonce' ); ?>
		<p>
			<label for="wp-seo-meta-description">
				<b><?php esc_html_e( 'Meta description', 'inc2734-wp-seo' ); ?></b>
			</label><br />
			<input
				type="text"
				name="wp-seo-meta-description"
				class="widefat"
				id="wp-seo-meta-description"
				value="<?php echo esc_attr( get_post_meta( $post->ID, 'wp-seo-meta-description', true ) ); ?>"
			/>
		</p>
		<p>
			<b><?php esc_html_e( 'Meta robots', 'inc2734-wp-seo' ); ?></b><br />
			<?php
			$robots = (array) get_post_meta( $post->ID, 'wp-seo-meta-robots', true );
			$robots_choices = [
				'noindex',
				'nofollow',
			]
			?>
			<?php foreach ( $robots_choices as $robot ) : ?>
				<label for="wp-seo-meta-robots-<?php echo esc_attr( $robot ); ?>" style="margin-right: 1em;">
					<input
						type="checkbox"
						name="wp-seo-meta-robots[]"
						id="wp-seo-meta-robots-<?php echo esc_attr( $robot ); ?>"
						value="<?php echo esc_attr( $robot ); ?>"
						<?php checked( in_array( $robot, $robots ) ); ?>
					/>
					<?php echo esc_html( $robot ); ?>
				</label>
			<?php endforeach; ?>
		</p>
		<?php
	}
public function _wp_seo_meta_box( $post ) {
		?>
		<?php wp_nonce_field( 'wp-seo-meta-box-action', 'wp-seo-meta-box-nonce' ); ?>
		<p>
			<label for="wp-seo-meta-description">
				<b><?php esc_html_e( 'Meta description', 'inc2734-wp-seo' ); ?></b>
			</label><br />
			<input
				type="text"
				name="wp-seo-meta-description"
				class="widefat"
				id="wp-seo-meta-description"
				value="<?php echo esc_attr( get_post_meta( $post->ID, 'wp-seo-meta-description', true ) ); ?>"
			/>
		</p>
		<p>
			<b><?php esc_html_e( 'Meta robots', 'inc2734-wp-seo' ); ?></b><br />
			<?php
			$robots = (array) get_post_meta( $post->ID, 'wp-seo-meta-robots', true );
			$robots_choices = [
				'noindex',
				'nofollow',
			]
			?>
			<?php foreach ( $robots_choices as $robot ) : ?>
				<label for="wp-seo-meta-robots-<?php echo esc_attr( $robot ); ?>" style="margin-right: 1em;">
					<input
						type="checkbox"
						name="wp-seo-meta-robots[]"
						id="wp-seo-meta-robots-<?php echo esc_attr( $robot ); ?>"
						value="<?php echo esc_attr( $robot ); ?>"
						<?php checked( in_array( $robot, $robots ) ); ?>
					/>
					<?php echo esc_html( $robot ); ?>
				</label>
			<?php endforeach; ?>
		</p>
		<?php
	}
public function _wp_seo_meta_box ( $ post ) { ?>
		<?php wp_nonce_field ( 'wp-seo-meta-box-action' , 'wp-seo-meta-box-nonce' ) ; ?>
		<p>
			<label for="wp-seo-meta-description">
				<b><?php esc_html_e ( 'Meta description' , 'inc2734-wp-seo' ) ; ?></b>
			</label><br />
			<input
				type="text"
				name="wp-seo-meta-description"
				class="widefat"
				id="wp-seo-meta-description"
				value="<?php echo esc_attr ( get_post_meta ( $ post -> ID , 'wp-seo-meta-description' , true ) ) ; ?>"
			/>
		</p>
		<p>
			<b><?php esc_html_e ( 'Meta robots' , 'inc2734-wp-seo' ) ; ?></b><br />
			<?php $ robots = ( array ) get_post_meta ( $ post -> ID , 'wp-seo-meta-robots' , true ) ; $ robots_choices = [ 'noindex' , 'nofollow' , ] ?>
			<?php foreach ( $ robots_choices as $ robot ) : ?>
				<label for="wp-seo-meta-robots-<?php echo esc_attr ( $ robot ) ; ?>" style="margin-right: 1em;">
					<input
						type="checkbox"
						name="wp-seo-meta-robots[]"
						id="wp-seo-meta-robots-<?php echo esc_attr ( $ robot ) ; ?>"
						value="<?php echo esc_attr ( $ robot ) ; ?>"
						<?php checked ( in_array ( $ robot , $ robots ) ) ; ?>
					/>
					<?php echo esc_html ( $ robot ) ; ?>
				</label>
			<?php endforeach ; ?>
		</p>
		<?php }
Display meta box

@param [WP_Post] $post
@return void
Display meta box