Advertisement
Guest User

Untitled

a guest
Jan 26th, 2017
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.93 KB | None | 0 0
  1. <?php
  2.         /* Projects */
  3.         $labels = array(
  4.             'name'  =>  __( 'Projects', 'macedoarquitectos' ),
  5.             'singular_name' =>  __( 'Project', 'macedoarquitectos' ),
  6.         );
  7.         register_post_type(
  8.             'project',
  9.             array(
  10.                 'labels'              => array(
  11.                     'name'                => $labels['name'],
  12.                     'singular_name'       => $labels['singular_name'],
  13.                     'menu_name'           => $labels['name'],
  14.                     //'parent_item_colon'   => sprintf('Parent %s:', $labels['singular_name']),
  15.                     'all_items'           => sprintf( __('All %s', 'macedoarquitectos'), $labels['name'] ),
  16.                     'view_item'           => sprintf( __('View %s', 'macedoarquitectos'), $labels['singular_name']),
  17.                     'add_new_item'        => sprintf( __('Add New %s', 'macedoarquitectos'), $labels['singular_name']),
  18.                     'add_new'             => __('Add New', 'macedoarquitectos'),
  19.                     'edit_item'           => sprintf( __('Edit %s', 'macedoarquitectos'), $labels['singular_name']),
  20.                     'update_item'         => sprintf( __('Update %s', 'macedoarquitectos'), $labels['singular_name']),
  21.                     'search_items'        => sprintf( __('Search %s', 'macedoarquitectos'), $labels['singular_name']),
  22.                     'not_found'           => __('Not found', 'macedoarquitectos'),
  23.                     'not_found_in_trash'  => __('Not found in Trash', 'macedoarquitectos'),
  24.                 ),
  25.                 'supports'            => array( 'title', 'author', 'revisions', 'page-attributes'),
  26.                 'hierarchical'        => false, // For performance issues
  27.                 'public'              => true,
  28.                 'show_ui'             => true,
  29.                 'show_in_menu'        => true,
  30.                 'show_in_nav_menus'   => true,
  31.                 'show_in_admin_bar'   => true,
  32.                 //'menu_position'       => 21,
  33.                 'menu_icon'           => 'dashicons-clipboard',
  34.                 'can_export'          => true,
  35.                 'has_archive'         => true,
  36.                 'exclude_from_search' => false,
  37.                 'publicly_queryable'  => true,
  38.                 'rewrite'             => true,
  39.                 'capability_type'     => 'page',
  40.             )
  41.         );
  42. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement