Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: eShop Mamma Store
- Plugin URI: http://eshopmamma.com
- Description: Totally rad shopping card system for eShopMamma
- Author: Jake Spurlock
- Version: 0.5
- Author URI: http://jakespurlock.com
- */
- /* Copyright 2010
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
- add_action( 'init', 'create_my_post_types' );
- function create_my_post_types() {
- register_post_type( 'the_store',
- array(
- 'label' => __( 'Products' ),
- 'singular_label' => __( 'Product' ),
- 'public' => true,
- 'show_ui' => true,
- 'publicly_queryable' => true,
- 'exclude_from_search' => false,
- 'menu_position' => 20,
- 'hierarchical' => true,
- 'query_var' => true,
- 'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'thumbnail', 'comments', 'page-attributes' ),
- 'rewrite' => array( 'slug' => 'store', 'with_front' => false ),
- 'permalink_epmask' => EP_PERMALINK,
- )
- );
- }
- ?>
Add Comment
Please, Sign In to add comment