/**
 * Registers and sets up the Commercial custom post type
 *
 * @since 1.0
 * @return void
 */
function epl_register_custom_post_type_commercial()
{
    $archives = defined('EPL_COMMERCIAL_DISABLE_ARCHIVE') && EPL_COMMERCIAL_DISABLE_ARCHIVE ? false : true;
    $slug = defined('EPL_COMMERCIAL_SLUG') ? EPL_COMMERCIAL_SLUG : 'commercial';
    $rewrite = defined('EPL_COMMERCIAL_DISABLE_REWRITE') && EPL_COMMERCIAL_DISABLE_REWRITE ? false : array('slug' => $slug, 'with_front' => false);
    $labels = apply_filters('epl_commercial_labels', array('name' => __('Commercial Listings', 'epl'), 'singular_name' => __('Commercial Listing', 'epl'), 'menu_name' => __('Commercial', 'epl'), 'add_new' => __('Add New', 'epl'), 'add_new_item' => __('Add New Commercial Listing', 'epl'), 'edit_item' => __('Edit Commercial Listing', 'epl'), 'new_item' => __('New Commercial Listing', 'epl'), 'update_item' => __('Update Commercial Listing', 'epl'), 'all_items' => __('All Commercial Listings', 'epl'), 'view_item' => __('View Commercial Listing', 'epl'), 'search_items' => __('Search Commercial Listing', 'epl'), 'not_found' => __('Commercial Listing Not Found', 'epl'), 'not_found_in_trash' => __('Commercial Listing Not Found in Trash', 'epl'), 'parent_item_colon' => __('Parent Commercial Listing:', 'epl')));
    $commercial_args = array('labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => $rewrite, 'menu_icon' => 'dashicons-welcome-widgets-menus', 'capability_type' => 'post', 'has_archive' => $archives, 'hierarchical' => false, 'menu_position' => '26.7', 'taxonomies' => array('location', 'tax_feature'), 'supports' => apply_filters('epl_commercial_supports', array('title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments')));
    epl_register_post_type('commercial', 'Commercial', apply_filters('epl_commercial_post_type_args', $commercial_args));
}
/**
 * Registers and sets up the Property custom post type
 *
 * @since 1.0
 * @return void
 */
function epl_register_custom_post_type_property()
{
    $archives = defined('EPL_PROPERTY_DISABLE_ARCHIVE') && EPL_PROPERTY_DISABLE_ARCHIVE ? false : true;
    $slug = defined('EPL_PROPERTY_SLUG') ? EPL_PROPERTY_SLUG : 'property';
    $rewrite = defined('EPL_PROPERTY_DISABLE_REWRITE') && EPL_PROPERTY_DISABLE_REWRITE ? false : array('slug' => $slug, 'with_front' => false);
    $labels = apply_filters('epl_property_labels', array('name' => __('Properties', 'epl'), 'singular_name' => __('Property', 'epl'), 'menu_name' => __('Property', 'epl'), 'add_new' => __('Add New', 'epl'), 'add_new_item' => __('Add New Listing', 'epl'), 'edit_item' => __('Edit Listing', 'epl'), 'new_item' => __('New Listing', 'epl'), 'update_item' => __('Update Listing', 'epl'), 'all_items' => __('All Listings', 'epl'), 'view_item' => __('View Listing', 'epl'), 'search_items' => __('Search Listing', 'epl'), 'not_found' => __('Listing Not Found', 'epl'), 'not_found_in_trash' => __('Listing Not Found in Trash', 'epl'), 'parent_item_colon' => __('Parent Listing:', 'epl')));
    $property_args = array('labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => $rewrite, 'menu_icon' => 'dashicons-admin-home', 'capability_type' => 'post', 'has_archive' => $archives, 'hierarchical' => false, 'menu_position' => '26.2', 'taxonomies' => array('location', 'tax_feature'), 'supports' => apply_filters('epl_property_supports', array('title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments')));
    epl_register_post_type('property', 'Property (Residential)', apply_filters('epl_property_post_type_args', $property_args));
}