Inventory_Presser_Classic_Editor::meta_box_html_featured( WP_Post $post )

Creates an editor meta box to help users mark vehicles as featured.


Parameters

$post

(WP_Post) (Required)


Return

(void)


Source

File: includes/integrations/class-classic-editor.php

	public function meta_box_html_featured( $post ) {
		$meta_key = apply_filters( 'invp_prefix_meta_key', 'featured' );
		printf(
			'<input type="checkbox" id="%s" name="%s" value="1"%s><label for="%s">%s</label>',
			$meta_key,
			$meta_key,
			checked( '1', INVP::get_meta( $meta_key, $post->ID ), false ),
			$meta_key,
			__( 'Featured in Slideshows', 'inventory-presser' )
		);
	}