Inventory_Presser_Customize_Dashboard::meta_box_html_featured( WP_Post $post )

meta_box_html_featured


Description Description

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


Top ↑

Parameters Parameters

$post

(WP_Post) (Required)


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-customize-admin-dashboard.php

	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', get_post_meta( $post->ID, $meta_key, true ), false ),
			$meta_key,
			__( 'Featured in Slideshows', 'inventory-presser' )
		);
	}