Risorse Gratuite (Free Products)
Bella e in Forma in 30 Minuti
if ( ! function_exists('freeproducts_post_type') ) { // Register Custom Post Type function freeproducts_post_type() { $labels = array( 'name' => _x( 'Risorse gratuite', 'Post Type General Name', 'roots' ), 'singular_name' => _x( 'Risorsa gratuita', 'Post Type Singular Name', 'roots' ), 'menu_name' => __( 'Risorse Gratuite', 'roots' ), 'name_admin_bar' => __( 'Risrose Gratuite', 'roots' ), 'parent_item_colon' => __( 'Risorsa padre:', 'roots' ), 'all_items' => __( 'Tutte le risorse gratuite', 'roots' ), 'add_new_item' => __( 'Aggiungi risorsa gratuita', 'roots' ), 'add_new' => __( 'Aggiungi', 'roots' ), 'new_item' => __( 'Nuova risorsa gratuita', 'roots' ), 'edit_item' => __( 'Modifica risorsa gratuita', 'roots' ), 'update_item' => __( 'Aggiorna risorsa gratuita', 'roots' ), 'view_item' => __( 'Visualizza risorsa gratuita', 'roots' ), 'search_items' => __( 'Cerca risorsa gratuita', 'roots' ), 'not_found' => __( 'Non trovata', 'roots' ), 'not_found_in_trash' => __( 'Non trovata nel Cestino', 'roots' ), ); $rewrite = array( 'slug' => 'risorse-gratuite', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'freeproducts', 'roots' ), 'description' => __( 'Risorse gratuite', 'roots' ), 'labels' => $labels, 'supports' => array( 'title', 'thumbnail', 'custom-fields', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 25, 'menu_icon' => 'dashicons-tickets', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'post', ); register_post_type( 'freeproducts', $args ); } // Hook into the 'init' action add_action( 'init', 'freeproducts_post_type', 0 ); }