whyisjake

Jake Spurlock

May 4th, 2010
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.55 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: eShop Mamma Store
  4. Plugin URI: http://eshopmamma.com
  5. Description: Totally rad shopping card system for eShopMamma
  6. Author: Jake Spurlock
  7. Version: 0.5
  8. Author URI: http://jakespurlock.com
  9. */  
  10.    
  11. /*  Copyright 2010
  12.  
  13. This program is free software; you can redistribute it and/or modify
  14. it under the terms of the GNU General Public License as published by
  15. the Free Software Foundation; either version 2 of the License, or
  16. (at your option) any later version.
  17.  
  18. This program is distributed in the hope that it will be useful,
  19. but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  21. GNU General Public License for more details.
  22.  
  23. You should have received a copy of the GNU General Public License
  24. along with this program; if not, write to the Free Software
  25. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  26. */
  27.  
  28. add_action( 'init', 'create_my_post_types' );
  29.  
  30. function create_my_post_types() {
  31.     register_post_type( 'the_store',
  32.         array(
  33.             'label' => __( 'Products' ),
  34.             'singular_label' => __( 'Product' ),
  35.             'public' => true,
  36.             'show_ui' => true,
  37.             'publicly_queryable' => true,
  38.             'exclude_from_search' => false,
  39.             'menu_position' => 20,
  40.             'hierarchical' => true,
  41.             'query_var' => true,
  42.             'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'thumbnail', 'comments', 'page-attributes' ),
  43.             'rewrite' => array( 'slug' => 'store', 'with_front' => false ),
  44.             'permalink_epmask' => EP_PERMALINK,
  45.         )
  46.     );
  47.    
  48. }
  49.  
  50. ?>
Add Comment
Please, Sign In to add comment