peanutheroo

cpt

Nov 23rd, 2016
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. function create_post_type() {
  2. register_post_type('students',
  3. array(
  4. 'labels' => array(
  5. 'name' => __('Étudiants'),
  6. 'singular_name' => __('Étudiant'),
  7. 'add_new' => __( 'Nouveau', 'textdomain' ),
  8. 'add_new_item' => __( 'Ajouter un nouvel étudiant', 'textdomain' ),
  9. 'new_item' => __( 'Nouvel étudiant', 'textdomain' ),
  10. 'edit_item' => __( 'Modifier l\'étudiant', 'textdomain' ),
  11. 'view_item' => __( 'Voir l\'étudiant', 'textdomain' ),
  12. 'all_items' => __( 'Tous les étudiants', 'textdomain' ),
  13. 'search_items' => __( 'Parcourir les étudiants', 'textdomain' ),
  14. 'not_found' => __( 'Aucun étudiant.', 'textdomain' ),
  15. ),
  16. 'public' => true,
  17. 'supports' => array(
  18. 'title', 'editor', 'thumbnail', 'comments'
  19. )) );
  20. }
  21. add_action('init', 'create_post_type');
Advertisement
Add Comment
Please, Sign In to add comment