Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function marches_CPT() {
- // Post Type
- $labels = array(
- 'name' => 'Marchés',
- 'all_items' => 'Tous les marchés',
- 'singular_name' => 'Marché',
- 'add_new_item' => 'Ajouter un camping',
- 'edit_item' => "Modifier le marché",
- 'menu_name' => 'Be | Marchés'
- );
- $args = array(
- 'labels' => $labels,
- 'public' => true,
- 'has_archive' => true,
- 'capability_type' => 'page',
- register_post_type('marche',$args);
- }
- add_action('init', 'marches_CPT', '0');
Add Comment
Please, Sign In to add comment