<?php
/*
Plugin Name: Buddypress challenges plugin
Plugin URI: http://homepage.rs/
Description: Plugin za unos buddypress challenge-a
Version: 1.0
Author: homepage
Author URI: http://homepage.rs/
License: GPLv2
*/

add_action( 'init', 'create_bp_challenges' );

function create_bp_challenges() {
  register_post_type( 'challenge',
      array(
          'labels' => array(
              'name' =>  __( 'Challenges', 'bp_challenges' ),
              'singular_name' => __( 'Challenge', 'bp_challenges' ),
              'add_new' => __( 'Add Challenge', 'bp_challenges' ),
              'add_new_item' => __( 'Add Challenge', 'bp_challenges' ),
              'edit' => __( 'Change Challenge', 'bp_challenges' ),
              'edit_item' => __( 'Edit Challenge', 'bp_challenges' ),
              'new_item' => __( 'New Challenge', 'bp_challenges' ),
              'view' => __( 'View Challenge', 'bp_challenges' ),
              'view_item' => __( 'View Challenge', 'bp_challenges' ),
              'search_items' => __( 'Search', 'bp_challenges' ),
              'not_found' => __( 'Not Found', 'bp_challenges' ),
              'not_found_in_trash' => __( 'No Challenges found in trash', 'bp_challenges' ),
              'parent' => __( 'Parent Challenge', 'bp_challenges' )
          ),
					'description' => __( 'BottleUp Challenges', 'bp_challenges' ),
          'public' => true,
          'menu_position' => 37,
          'supports' => array( 'title', 'editor', 'thumbnail', 'category'),
          'taxonomies' => array( '' ),
					'menu_icon' => 'dashicons-smiley',
          'has_archive' => true
        )
    );
}

