Processes_aat
Business processes custom post type
if ( ! function_exists('process') ) { // Register Custom Post Type function process() { $labels = array( 'name' => _x( 'Processes', 'Post Type General Name', 'en_GB' ), 'singular_name' => _x( 'Process', 'Post Type Singular Name', 'en_GB' ), 'menu_name' => __( 'Processes', 'en_GB' ), 'parent_item_colon' => __( 'Parent Process:', 'en_GB' ), 'all_items' => __( 'All Processes', 'en_GB' ), 'view_item' => __( 'View Process', 'en_GB' ), 'add_new_item' => __( 'Add New Process', 'en_GB' ), 'add_new' => __( 'Add New', 'en_GB' ), 'edit_item' => __( 'Edit Process', 'en_GB' ), 'update_item' => __( 'Update Process', 'en_GB' ), 'search_items' => __( 'Search Process', 'en_GB' ), 'not_found' => __( 'Not found', 'en_GB' ), 'not_found_in_trash' => __( 'Not found in Trash', 'en_GB' ), ); $rewrite = array( 'slug' => 'processes', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'process', 'en_GB' ), 'description' => __( 'Description of a process used at AAT', 'en_GB' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 25, 'menu_icon' => 'dashicons-clipboard', 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'post', ); register_post_type( 'process', $args ); } // Hook into the 'init' action add_action( 'init', 'process', 0 ); }