Inventory_Presser_Classic_Editor::meta_box_html_featured( WP_Post $post )

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


Parameters Parameters

$post

(WP_Post) (Required)


Top ↑

Return Return

(void)


Top ↑

Source 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="%1$s" name="%1$s" value="1"%2$s><label for="%1$s">%3$s</label>',
			esc_attr( $meta_key ),
			checked( '1', INVP::get_meta( $meta_key, $post->ID ), false ),
			esc_html__( 'Featured in Slideshows', 'inventory-presser' )
		);
	}