__( 'Popups', '2fox4-custom-popup' ), 'singular_name' => __( 'Popup', '2fox4-custom-popup' ), 'add_new' => __( 'New Popup', '2fox4-custom-popup' ), 'add_new_item' => __( 'Add New Popup', '2fox4-custom-popup' ), 'edit_item' => __( 'Edit Popup', '2fox4-custom-popup' ), 'new_item' => __( 'New Popup', '2fox4-custom-popup' ), 'view_item' => __( 'View Popup', '2fox4-custom-popup' ), 'search_items' => __( 'Search Popups', '2fox4-custom-popup' ), 'not_found' => __( 'No popups found.', '2fox4-custom-popup' ), 'not_found_in_trash' => __( 'No popups found in trash.', '2fox4-custom-popup' ), 'menu_name' => __( 'Popups', '2fox4-custom-popup' ), ]; register_post_type( 'foxcp_popup', [ 'labels' => $labels, 'public' => false, 'show_ui' => true, 'show_in_menu' => true, 'show_in_rest' => true, 'supports' => [ 'title', 'editor', 'custom-fields' ], 'menu_icon' => 'dashicons-welcome-view-site', 'menu_position' => 25, 'description' => __( 'Popup windows for your website.', '2fox4-custom-popup' ), ] ); } }