Created
July 30, 2014 14:53
-
-
Save jpcontrerasv/6f376f7df6fd6be2f53a to your computer and use it in GitHub Desktop.
WP > Register post type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
register_post_type('banner_mini', array( | |
'labels' => array( | |
'name' => __('Banners') , | |
'singular_name' => __('Banner') , | |
'add_new' => _x('Agregar nuevo', 'banner_mini') , | |
'add_new_item' => __('Agregar nuevo banner') , | |
) , | |
'public' => true, | |
'has_archive' => false, | |
'show_ui' => true, | |
'hierarchical' => false, | |
'capability_type' => 'post', | |
'query_var' => true, | |
'supports' => array( | |
'title', | |
'thumbnail', | |
) | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment