__( 'Your Post Type', 'air-light' ), 'name' => _x( 'Your Post Types', 'post type general name', 'air-light' ), 'singular_name' => _x( 'Your Post Type', 'post type singular name', 'air-light' ), 'name_admin_bar' => _x( 'Your Post Type', 'add new on admin bar', 'air-light' ), 'add_new' => _x( 'Add New', 'thing', 'air-light' ), 'add_new_item' => __( 'Add New Your Post Type', 'air-light' ), 'new_item' => __( 'New Your Post Type', 'air-light' ), 'edit_item' => __( 'Edit Your Post Type', 'air-light' ), 'view_item' => __( 'View Your Post Type', 'air-light' ), 'all_items' => __( 'All Your Post Types', 'air-light' ), 'search_items' => __( 'Search Your Post Types', 'air-light' ), 'parent_item_colon' => __( 'Parent Your Post Types:', 'air-light' ), 'not_found' => __( 'No your post types found.', 'air-light' ), 'not_found_in_trash' => __( 'No your post types found in Trash.', 'air-light' ), ]; // Definition of the post type arguments. For full list see: // http://codex.wordpress.org/Function_Reference/register_post_type $args = [ 'labels' => $generated_labels, 'description' => '', 'menu_icon' => null, 'public' => false, 'has_archive' => false, 'exclude_from_search' => false, 'show_ui' => true, 'show_in_menu' => true, 'show_in_rest' => false, 'rewrite' => [ 'with_front' => false, 'slug' => 'your-post-type', ], 'supports' => [ 'title', 'editor', 'thumbnail', 'revisions' ], 'taxonomies' => [], ]; $this->register_wp_post_type( $this->slug, $args ); } }