Nav Processes
if ( ! function_exists('cpt_process') ) {
// Register Custom Post Type
function cpt_process() {
$labels = array(
'name' => 'Steps',
'singular_name' => 'Step',
'menu_name' => 'Process Steps',
'name_admin_bar' => 'Process Steps',
'archives' => 'Item Archives',
'attributes' => 'Item Attributes',
'parent_item_colon' => 'Parent Item:',
'all_items' => 'All Items',
'add_new_item' => 'Add New Item',
'add_new' => 'Add New Step',
'new_item' => 'New Item',
'edit_item' => 'Edit Step',
'update_item' => 'Update Step',
'view_item' => 'View Step',
'view_items' => 'View Steps',
'search_items' => 'Search Steps',
'not_found' => 'Not found',
'not_found_in_trash' => 'Not found in Trash',
'featured_image' => 'Process Image',
'set_featured_image' => 'Set process image',
'remove_featured_image' => 'Remove process image',
'use_featured_image' => 'Use as process image',
'insert_into_item' => 'Insert into step',
'uploaded_to_this_item' => 'Uploaded to this item',
'items_list' => 'Steps list',
'items_list_navigation' => 'Steps list navigation',
'filter_items_list' => 'Filter steps list',
);
$args = array(
'label' => 'Step',
'description' => 'Navigator Process Steps',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 20,
'menu_icon' => 'dashicons-networking',
'show_in_admin_bar' => false,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => false,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'page',
'show_in_rest' => false,
);
register_post_type( 'process', $args );
}
add_action( 'init', 'cpt_process', 0 );
}