Skip to content

Instantly share code, notes, and snippets.

@goranefbl
Created April 19, 2016 07:25
Show Gist options
  • Save goranefbl/787f15e0e65cc894ef502170954b1f82 to your computer and use it in GitHub Desktop.
Save goranefbl/787f15e0e65cc894ef502170954b1f82 to your computer and use it in GitHub Desktop.
register_post_type('product',
array( 'labels' => array(
'name' => __( 'Product', 'wpgens' ), /* This is the Title of the Group */
'singular_name' => __( 'Product', 'wpgens' ), /* This is the individual type */
'all_items' => __( 'All Products', 'wpgens' ), /* the all items menu item */
'add_new' => __( 'Add New Product', 'wpgens' ), /* The add new menu item */
'add_new_item' => __( 'Add New Product', 'wpgens' ), /* Add New Display Title */
'edit' => __( 'Edit', 'wpgens' ), /* Edit Dialog */
'edit_item' => __( 'Edit Product', 'wpgens' ), /* Edit Display Title */
'new_item' => __( 'New Product', 'wpgens' ), /* New Display Title */
'view_item' => __( 'View Product', 'wpgens' ), /* View Display Title */
'search_items' => __( 'Search Products', 'wpgens' ) /* Search Custom Type Title */
), /* end of labels */
'public' => true,
'has_archive' => 'products',
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment