if ( ! function_exists('mob_produse') ) { // Register Custom Post Type function mob_produse() { $labels = array( 'name' => _x( 'Produse', 'Post Type General Name', 'mobistar' ), 'singular_name' => _x( 'Produs', 'Post Type Singular Name', 'mobistar' ), 'menu_name' => __( 'Produse', 'mobistar' ), 'name_admin_bar' => __( 'Produse', 'mobistar' ), 'archives' => __( 'Arhiva Produse', 'mobistar' ), 'attributes' => __( 'Attribute Produs', 'mobistar' ), 'parent_item_colon' => __( 'Parent Product:', 'mobistar' ), 'all_items' => __( 'Toate Produsele', 'mobistar' ), 'add_new_item' => __( 'Adaugă Produs Nou', 'mobistar' ), 'add_new' => __( 'Adaugă nou', 'mobistar' ), 'new_item' => __( 'Produs nou', 'mobistar' ), 'edit_item' => __( 'Modifică Produs', 'mobistar' ), 'update_item' => __( 'Actualizează Produs', 'mobistar' ), 'view_item' => __( 'Vezi Produs', 'mobistar' ), 'view_items' => __( 'Vezi Produse', 'mobistar' ), 'search_items' => __( 'Caută Produs', 'mobistar' ), 'not_found' => __( 'Not found', 'mobistar' ), 'not_found_in_trash' => __( 'Not found in Trash', 'mobistar' ), 'featured_image' => __( 'Imagine Reprezentativă', 'mobistar' ), 'set_featured_image' => __( 'Adaugă Imagine Reprezentativă', 'mobistar' ), 'remove_featured_image' => __( 'Elimină Imagine Reprezentativă', 'mobistar' ), 'use_featured_image' => __( 'Folosește ca Imagine Preprezentativă', 'mobistar' ), 'insert_into_item' => __( 'Insert into item', 'mobistar' ), 'uploaded_to_this_item' => __( 'Uploaded to this item', 'mobistar' ), 'items_list' => __( 'Items list', 'mobistar' ), 'items_list_navigation' => __( 'Items list navigation', 'mobistar' ), 'filter_items_list' => __( 'Filter items list', 'mobistar' ), ); $args = array( 'label' => __( 'Produs', 'mobistar' ), 'description' => __( 'Products custom post type', 'mobistar' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'custom-fields' ), 'taxonomies' => array( 'categorie-produs' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 20, 'menu_icon' => 'dashicons-feedback', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'produse', $args ); } add_action( 'init', 'mob_produse', 0 ); }