Sale
// Register Custom Post Type
function custom_post_type_sale() {
$labels = array(
'name' => _x( 'מבצעים', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'מבצע', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'מבצעים', 'text_domain' ),
'name_admin_bar' => __( 'מבצעים', 'text_domain' ),
'parent_item_colon' => __( 'אב מבצע', 'text_domain' ),
'all_items' => __( 'כל המבצעים', 'text_domain' ),
'add_new_item' => __( 'הוסף מבצע', 'text_domain' ),
'add_new' => __( 'הוסף מבצע', 'text_domain' ),
'new_item' => __( 'הוסף מבצע', 'text_domain' ),
'edit_item' => __( 'ערוך מבצע', 'text_domain' ),
'update_item' => __( 'עדכן מבצע', 'text_domain' ),
'view_item' => __( 'ראה מבצע', 'text_domain' ),
'search_items' => __( 'חפש מבצע', 'text_domain' ),
'not_found' => __( 'לא נמצאו מבצעים', 'text_domain' ),
'not_found_in_trash' => __( 'לא נמצאו מבצעים באשפה', 'text_domain' ),
);
$args = array(
'label' => __( 'sale', 'text_domain' ),
'description' => __( 'Post Type Sale Description', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'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( 'sale', $args );
}
// Hook into the 'init' action
add_action( 'init', 'custom_post_type_sale', 0 );