TRS Invoice System
Invoice system for Woocommerce
// Register Custom Post Type function invoice_system() { $labels = array( 'name' => _x( 'Invoices', 'Post Type General Name', 'trs_invoice_system' ), 'singular_name' => _x( 'Invoice', 'Post Type Singular Name', 'trs_invoice_system' ), 'menu_name' => __( 'Invoices', 'trs_invoice_system' ), 'name_admin_bar' => __( 'Invoices', 'trs_invoice_system' ), 'archives' => __( 'Invoice Archives', 'trs_invoice_system' ), 'attributes' => __( 'Invoice Attributes', 'trs_invoice_system' ), 'parent_item_colon' => __( 'Parent Invoice:', 'trs_invoice_system' ), 'all_items' => __( 'All Invoices', 'trs_invoice_system' ), 'add_new_item' => __( 'Add New Invoice', 'trs_invoice_system' ), 'add_new' => __( 'Add New', 'trs_invoice_system' ), 'new_item' => __( 'New Invoice', 'trs_invoice_system' ), 'edit_item' => __( 'Edit Invoice', 'trs_invoice_system' ), 'update_item' => __( 'Update Invoice', 'trs_invoice_system' ), 'view_item' => __( 'View Invoice', 'trs_invoice_system' ), 'view_items' => __( 'View Invoice', 'trs_invoice_system' ), 'search_items' => __( 'Search Invoice', 'trs_invoice_system' ), 'not_found' => __( 'Not found', 'trs_invoice_system' ), 'not_found_in_trash' => __( 'Not found in Trash', 'trs_invoice_system' ), 'featured_image' => __( 'Featured Image', 'trs_invoice_system' ), 'set_featured_image' => __( 'Set featured image', 'trs_invoice_system' ), 'remove_featured_image' => __( 'Remove featured image', 'trs_invoice_system' ), 'use_featured_image' => __( 'Use as featured image', 'trs_invoice_system' ), 'insert_into_item' => __( 'Insert into Invoice', 'trs_invoice_system' ), 'uploaded_to_this_item' => __( 'Uploaded to this Invoice', 'trs_invoice_system' ), 'items_list' => __( 'Items list', 'trs_invoice_system' ), 'items_list_navigation' => __( 'Items list navigation', 'trs_invoice_system' ), 'filter_items_list' => __( 'Filter items list', 'trs_invoice_system' ), ); $args = array( 'label' => __( 'Invoice', 'trs_invoice_system' ), 'description' => __( 'Generate Invoices', 'trs_invoice_system' ), 'labels' => $labels, 'supports' => array( 'title', 'author', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 20, 'menu_icon' => 'dashicons-media-text', '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', ); register_post_type( 'Invoice System', $args ); } add_action( 'init', 'invoice_system', 0 );