Inventory_Presser_Admin_Customize_Dashboard::meta_box_html_featured( WP_Post $post )
meta_box_html_featured
Contents
Description Description
Creates an editor meta box to help users mark vehicles as featured.
Parameters Parameters
- $post
-
(WP_Post) (Required)
Return Return
(void)
Source Source
File: includes/admin/class-admin-customize-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', INVP::get_meta( $meta_key, $post->ID ), false ), $meta_key, __( 'Featured in Slideshows', 'inventory-presser' ) ); }
Expand full source code Collapse full source code View on Github