///mega menu
/////////////////////// taxonomia repuestos vehiculo function your_prefix_register_taxonomy() { $args = array ( 'label' => esc_html__( 'Repuestos vehiculos', 'text-domain' ), 'labels' => array( 'menu_name' => esc_html__( 'Repuestos vehiculos', 'text-domain' ), 'all_items' => esc_html__( 'All Repuestos vehiculos', 'text-domain' ), 'edit_item' => esc_html__( 'Edit Repuesto vehiculo', 'text-domain' ), 'view_item' => esc_html__( 'View Repuesto vehiculo', 'text-domain' ), 'update_item' => esc_html__( 'Update Repuesto vehiculo', 'text-domain' ), 'add_new_item' => esc_html__( 'Add new Repuesto vehiculo', 'text-domain' ), 'new_item_name' => esc_html__( 'New Repuesto vehiculo', 'text-domain' ), 'parent_item' => esc_html__( 'Parent Repuesto vehiculo', 'text-domain' ), 'parent_item_colon' => esc_html__( 'Parent Repuesto vehiculo:', 'text-domain' ), 'search_items' => esc_html__( 'Search Repuestos vehiculos', 'text-domain' ), 'popular_items' => esc_html__( 'Popular Repuestos vehiculos', 'text-domain' ), 'separate_items_with_commas' => esc_html__( 'Separate Repuestos vehiculos with commas', 'text-domain' ), 'add_or_remove_items' => esc_html__( 'Add or remove Repuestos vehiculos', 'text-domain' ), 'choose_from_most_used' => esc_html__( 'Choose most used Repuestos vehiculos', 'text-domain' ), 'not_found' => esc_html__( 'No Repuestos vehiculos found', 'text-domain' ), 'name' => esc_html__( 'Repuestos vehiculos', 'text-domain' ), 'singular_name' => esc_html__( 'Repuesto vehiculo', 'text-domain' ), ), 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, 'show_in_quick_edit' => true, 'show_admin_column' => false, 'show_in_rest' => true, 'hierarchical' => true, 'query_var' => true, 'sort' => false, 'rewrite' => array( 'slug' => 'repuesto-vehiculo', ), ); register_taxonomy( 'repuesto-vehiculo', array( 'repuesto' ), $args ); } add_action( 'init', 'your_prefix_register_taxonomy', 0 ); ///////////// post type repuestos function your_prefix_register_post_type() { $args = array ( 'label' => esc_html__( 'Repuestos', 'text-domain' ), 'labels' => array( 'menu_name' => esc_html__( 'Repuestos', 'text-domain' ), 'name_admin_bar' => esc_html__( 'Repuesto', 'text-domain' ), 'add_new' => esc_html__( 'Add new', 'text-domain' ), 'add_new_item' => esc_html__( 'Add new Repuesto', 'text-domain' ), 'new_item' => esc_html__( 'New Repuesto', 'text-domain' ), 'edit_item' => esc_html__( 'Edit Repuesto', 'text-domain' ), 'view_item' => esc_html__( 'View Repuesto', 'text-domain' ), 'update_item' => esc_html__( 'Update Repuesto', 'text-domain' ), 'all_items' => esc_html__( 'All Repuestos', 'text-domain' ), 'search_items' => esc_html__( 'Search Repuestos', 'text-domain' ), 'parent_item_colon' => esc_html__( 'Parent Repuesto', 'text-domain' ), 'not_found' => esc_html__( 'No Repuestos found', 'text-domain' ), 'not_found_in_trash' => esc_html__( 'No Repuestos found in Trash', 'text-domain' ), 'name' => esc_html__( 'Repuestos', 'text-domain' ), 'singular_name' => esc_html__( 'Repuesto', 'text-domain' ), ), 'public' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'show_in_rest' => true, 'menu_position' => 2, 'menu_icon' => 'dashicons-admin-tools', 'capability_type' => 'page', 'hierarchical' => false, 'has_archive' => true, 'query_var' => true, 'can_export' => true, 'rewrite_no_front' => false, 'show_in_menu' => true, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', ), 'rewrite' => true, ); register_post_type( 'repuesto', $args ); } add_action( 'init', 'your_prefix_register_post_type' );