RA – Realizations
Eyup.
// Register Custom Post Type function register_realizations_post_type() { $labels = array( 'name' => _x( 'Realizations', 'Post Type General Name', 'ra' ), 'singular_name' => _x( 'Realization', 'Post Type Singular Name', 'ra' ), 'menu_name' => __( 'Realizations', 'ra' ), 'name_admin_bar' => __( 'Realizations', 'ra' ), 'parent_item_colon' => __( 'Parent Realization:', 'ra' ), 'all_items' => __( 'All Realizations', 'ra' ), 'add_new_item' => __( 'Add New Realization', 'ra' ), 'add_new' => __( 'Add New', 'ra' ), 'new_item' => __( 'New Realization', 'ra' ), 'edit_item' => __( 'Edit Realization', 'ra' ), 'update_item' => __( 'Update Realization', 'ra' ), 'view_item' => __( 'View Realization', 'ra' ), 'search_items' => __( 'Search Realization', 'ra' ), 'not_found' => __( 'Not found', 'ra' ), 'not_found_in_trash' => __( 'Not found in Trash', 'ra' ), ); $args = array( 'label' => __( 'realization', 'ra' ), 'description' => __( 'All the realizations from Ressources-Actions', 'ra' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'revisions', 'page-attributes', ), 'taxonomies' => array( 'domain' ), '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' => 'post', ); register_post_type( 'realization', $args ); } // Hook into the 'init' action add_action( 'init', 'register_realizations_post_type', 0 );