Advertisement
developerjustin

Untitled

Jun 17th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.12 KB | None | 0 0
  1.     register_post_type('alert', // Register Custom Post Type
  2.         array(
  3.         'labels' => array(
  4.             'name' => __('Local Alerts', 'html5blank'), // Rename these to suit
  5.             'singular_name' => __('Local Alert', 'html5blank'),
  6.             'add_new' => __('Add New', 'html5blank'),
  7.             'add_new_item' => __('Add New Local Alert', 'html5blank'),
  8.             'edit' => __('Edit', 'html5blank'),
  9.             'edit_item' => __('Edit Local Alert', 'html5blank'),
  10.             'new_item' => __('New Local Alert', 'html5blank'),
  11.             'view' => __('View Local Alert', 'html5blank'),
  12.             'view_item' => __('View Local Alert', 'html5blank'),
  13.             'search_items' => __('Search Local Alerts', 'html5blank'),
  14.             'not_found' => __('No Local Alerts found', 'html5blank'),
  15.             'not_found_in_trash' => __('No Local Alerts found in Trash', 'html5blank')
  16.         ),
  17.         'public' => true,
  18.         'hierarchical' => true,
  19.         'has_archive' => true,
  20.         'supports' => array(
  21.             'title',
  22.             'excerpt',
  23.             'thumbnail'
  24.         ),
  25.         'can_export' => true
  26.     ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement