<?php

add_action('init', 'wwp_vc_sections_cpt_init');
function wwp_vc_sections_cpt_init()
{
    $labels = array(
        'name' => 'VC Sections',
        'singular_name' => 'VC Section',
        'add_new' => 'Add New',
        'add_new_item' => 'Add New VC Section',
        'edit_item' => 'Edit VC Section',
        'new_item' => 'New VC Section',
        'view_item' => 'View VC Section',
        'search_items' => 'Search VC Section',
        'not_found' =>  'No VC Section found',
        'not_found_in_trash' => 'No VC Section in the trash',
        'parent_item_colon' => '',
    );

    $args = array(
        'labels' => $labels,
        'capability_type' => 'post',
        'query_var'  => true,
        'show_ui' => true,
        'show_in_menu' => true,
        'exclude_from_search' => true,
        'public' => false,
        'publicly_queryable' => false,
        'has_archive' => false,
        'hierarchical' => false,
        'menu_position' => null,
        'menu_icon' => plugins_url('../images/wwp_vc_sections_menu.png', __FILE__ ),
        'supports' => array('editor', 'title'),
    );

    register_post_type('wwp_vc_sections', $args);
}
