function register_team_post_type()
{
    register_post_type('team', array('labels' => array('name' => __('Services & Prices', "rms"), 'singular_name' => __('Services & Prices', "rms"), 'add_new' => __('Add Services & Prices', "rms"), 'add_new_item' => __('Add Services & Prices', "rms"), 'edit_item' => __('Edit Services & Prices', "rms"), 'new_item' => __('New Services & Prices', "rms"), 'not_found' => __('No Services & Prices found', "rms"), 'not_found_in_trash' => __('No Services & Prices found in Trash', "rms"), 'menu_name' => __('Services & Prices', "rms")), 'description' => 'Manipulating with Services & Prices', 'public' => true, 'show_in_nav_menus' => true, 'supports' => array('title', 'thumbnail', 'editor', 'page-attributes'), 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 34, 'has_archive' => true, 'menu_icon' => 'dashicons-hammer', 'query_var' => true, 'rewrite' => array('slug' => 'team'), 'capability_type' => 'post', 'map_meta_cap' => true));
    add_custom_taxonomies_team();
}
예제 #2
0
function register_team_post_type()
{
    register_post_type('team', array('labels' => array('name' => __('Our Team', "tw"), 'singular_name' => __('Our Team', "tw"), 'add_new' => __('Add Team Member', "tw"), 'add_new_item' => __('Add Team Member', "tw"), 'edit_item' => __('Edit Team Member', "tw"), 'new_item' => __('New Team Member', "tw"), 'not_found' => __('No Member found', "tw"), 'not_found_in_trash' => __('No Team Member found in Trash', "tw"), 'menu_name' => __('Our Team', "tw")), 'description' => 'Manipulating with our team', 'public' => true, 'show_in_nav_menus' => true, 'supports' => array('title', 'thumbnail', 'editor', 'page-attributes'), 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 34, 'has_archive' => true, 'menu_icon' => 'dashicons-feedback', 'query_var' => true, 'rewrite' => array('slug' => 'team'), 'capability_type' => 'post', 'map_meta_cap' => true));
    add_custom_taxonomies_team();
    flush_rewrite_rules(false);
}