Properties

function create_vacation_rentals_cpt() {
$args = array(
‘public’ => true,
‘label’ => ‘Vacation Rentals’,
‘supports’ => array(‘title’, ‘editor’, ‘thumbnail’, ‘comments’),
‘has_archive’ => true,
);
register_post_type(‘vacation_rentals’, $args);
}
add_action(‘init’, ‘create_vacation_rentals_cpt’);