Countries globalnetworkinitiative
globalnetworkinitiative
if ( ! function_exists('country_custom_post_type') ) { // Register Custom Post Type function country_custom_post_type() { $labels = array( 'name' => _x( 'Countries', 'Post Type General Name', 'country' ), 'singular_name' => _x( 'Country', 'Post Type Singular Name', 'country' ), 'menu_name' => __( 'Countries', 'country' ), 'name_admin_bar' => __( 'Country', 'country' ), 'archives' => __( 'Country Archives', 'country' ), 'attributes' => __( 'Country Attributes', 'country' ), 'parent_item_colon' => __( 'Parent Country:', 'country' ), 'all_items' => __( 'All Countries', 'country' ), 'add_new_item' => __( 'Add New Country', 'country' ), 'add_new' => __( 'Add New', 'country' ), 'new_item' => __( 'New Country', 'country' ), 'edit_item' => __( 'Edit Country', 'country' ), 'update_item' => __( 'Update Country', 'country' ), 'view_item' => __( 'View Country', 'country' ), 'view_items' => __( 'View Countries', 'country' ), 'search_items' => __( 'Search Country', 'country' ), 'not_found' => __( 'Not found', 'country' ), 'not_found_in_trash' => __( 'Not found in Trash', 'country' ), 'featured_image' => __( 'Featured Image', 'country' ), 'set_featured_image' => __( 'Set featured image', 'country' ), 'remove_featured_image' => __( 'Remove featured image', 'country' ), 'use_featured_image' => __( 'Use as featured image', 'country' ), 'insert_into_item' => __( 'Insert into Country', 'country' ), 'uploaded_to_this_item' => __( 'Uploaded to this Country', 'country' ), 'items_list' => __( 'Countries list', 'country' ), 'items_list_navigation' => __( 'Countries list navigation', 'country' ), 'filter_items_list' => __( 'Filter Countries list', 'country' ), ); $args = array( 'label' => __( 'Country', 'country' ), 'description' => __( 'Country Info', 'country' ), 'labels' => $labels, 'supports' => array( 'title', 'custom-fields' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 20, 'menu_icon' => 'dashicons-admin-site', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', 'show_in_rest' => true, ); register_post_type( 'country', $args ); } add_action( 'init', 'country_custom_post_type', 0 ); }