<?php

// Register Custom Post Type global_blocks
function create_post_type_global_blocks() {
 
    $labels = array(
        'name'                => _x( 'Global Blocks', 'Post Type General Name', 'felicityhealth' ),
        'singular_name'       => _x( 'Global Block', 'Post Type Singular Name', 'felicityhealth' ),
        'menu_name'           => __( 'Global Blocks', 'felicityhealth' ),
        'parent_item_colon'   => __( 'Parent Global Block:', 'felicityhealth' ),
        'all_items'           => __( 'All Blocks', 'felicityhealth' ),
        'view_item'           => __( 'View Global Block', 'felicityhealth' ),
        'add_new_item'        => __( 'Add New Block', 'felicityhealth' ),
        'add_new'             => __( 'Add New Block', 'felicityhealth' ),
        'edit_item'           => __( 'Edit Global Block', 'felicityhealth' ),
        'update_item'         => __( 'Update Global Block', 'felicityhealth' ),
        'search_items'        => __( 'Search Global Block', 'felicityhealth' ),
        'not_found'           => __( 'No Global found', 'felicityhealth' ),
        'not_found_in_trash'  => __( 'No Global found in trash', 'felicityhealth' ),
    );
    $args = array(
        'label'               => __( 'Global Blocks', 'felicityhealth' ),
        'description'         => __( 'Post Type Description', 'felicityhealth' ),
        'labels'              => $labels,
        'supports'            => array( 'title', 'thumbnail', 'custom-fields', 'permalinks'),
        // 'show_in_rest'        => true,
        'hierarchical'        => false,
        'public'              => true,
        'show_ui'             => true,
        'show_in_menu'        => true,
        'show_in_nav_menus'   => true,
        'show_in_admin_bar'   => true,
        'menu_position'       => 5,
        'menu_icon'           => 'dashicons-columns',
        'can_export'          => true,
        'has_archive'         => true,
        'exclude_from_search' => false,
        'publicly_queryable'  => true,
        'capability_type'     => 'page',
        'register_meta_box_cb' => '',

    );
    register_post_type( 'GlobalBlocks', $args );
 
 
}

// Hook into the 'init' action
add_action( 'init', 'create_post_type_global_blocks', 0 );
// add_action( 'add_meta_boxes', 'zulutheme_add_event_metaboxes' );
 