Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- register_post_type('alert', // Register Custom Post Type
- array(
- 'labels' => array(
- 'name' => __('Local Alerts', 'html5blank'), // Rename these to suit
- 'singular_name' => __('Local Alert', 'html5blank'),
- 'add_new' => __('Add New', 'html5blank'),
- 'add_new_item' => __('Add New Local Alert', 'html5blank'),
- 'edit' => __('Edit', 'html5blank'),
- 'edit_item' => __('Edit Local Alert', 'html5blank'),
- 'new_item' => __('New Local Alert', 'html5blank'),
- 'view' => __('View Local Alert', 'html5blank'),
- 'view_item' => __('View Local Alert', 'html5blank'),
- 'search_items' => __('Search Local Alerts', 'html5blank'),
- 'not_found' => __('No Local Alerts found', 'html5blank'),
- 'not_found_in_trash' => __('No Local Alerts found in Trash', 'html5blank')
- ),
- 'public' => true,
- 'hierarchical' => true,
- 'has_archive' => true,
- 'supports' => array(
- 'title',
- 'excerpt',
- 'thumbnail'
- ),
- 'can_export' => true
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement