kayaks.co.il – Specials Post Type
Specials for kayaks.co.il
// Register Custom Post Type function kayaks_post_type() { $labels = array( 'name' => _x( 'Specials', 'Post Type General Name', 'kayaks' ), 'singular_name' => _x( 'Specials', 'Post Type Singular Name', 'kayaks' ), 'menu_name' => __( 'Specials', 'kayaks' ), 'name_admin_bar' => __( 'Specials', 'kayaks' ), 'parent_item_colon' => __( 'Parent Item:', 'kayaks' ), 'all_items' => __( 'All Items', 'kayaks' ), 'add_new_item' => __( 'Add New Item', 'kayaks' ), 'add_new' => __( 'Add New', 'kayaks' ), 'new_item' => __( 'New Item', 'kayaks' ), 'edit_item' => __( 'Edit Item', 'kayaks' ), 'update_item' => __( 'Update Item', 'kayaks' ), 'view_item' => __( 'View Item', 'kayaks' ), 'search_items' => __( 'Search Item', 'kayaks' ), 'not_found' => __( 'Not found', 'kayaks' ), 'not_found_in_trash' => __( 'Not found in Trash', 'kayaks' ), ); $args = array( 'label' => __( 'specials', 'kayaks' ), 'description' => __( 'Specials Description', 'kayaks' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-awards', '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( 'specials', $args ); } // Hook into the 'init' action add_action( 'init', 'kayaks_post_type', 0 );