Broken Link
Broken Link
// Register Custom Post Type function broken_link() { $labels = array( 'name' => _x( 'Broken Links', 'Post Type General Name', 'broken_link' ), 'singular_name' => _x( 'Broken Link', 'Post Type Singular Name', 'broken_link' ), 'menu_name' => __( 'Broken Links', 'broken_link' ), 'name_admin_bar' => __( 'Broken Link', 'broken_link' ), 'archives' => __( 'Broken Links Archives', 'broken_link' ), 'attributes' => __( 'Broken Links Attributes', 'broken_link' ), 'parent_item_colon' => __( 'Parent Broken Links:', 'broken_link' ), 'all_items' => __( 'All Broken Links', 'broken_link' ), 'add_new_item' => __( 'Add Broken Link', 'broken_link' ), 'add_new' => __( 'Add New', 'broken_link' ), 'new_item' => __( 'New Broken Link', 'broken_link' ), 'edit_item' => __( 'Edit Broken Link', 'broken_link' ), 'update_item' => __( 'Update Broken Link', 'broken_link' ), 'view_item' => __( 'View Broken Link', 'broken_link' ), 'view_items' => __( 'View Broken Links', 'broken_link' ), 'search_items' => __( 'Search Broken Link', 'broken_link' ), 'not_found' => __( 'Not found', 'broken_link' ), 'not_found_in_trash' => __( 'Not found in Trash', 'broken_link' ), 'featured_image' => __( 'Featured Image', 'broken_link' ), 'set_featured_image' => __( 'Set featured image', 'broken_link' ), 'remove_featured_image' => __( 'Remove featured image', 'broken_link' ), 'use_featured_image' => __( 'Use as featured image', 'broken_link' ), 'insert_into_item' => __( 'Insert into Broken Link', 'broken_link' ), 'uploaded_to_this_item' => __( 'Uploaded to this Broken Link', 'broken_link' ), 'items_list' => __( 'Broken Link list', 'broken_link' ), 'items_list_navigation' => __( 'Broken Links list navigation', 'broken_link' ), 'filter_items_list' => __( 'Filter Broken Link list', 'broken_link' ), ); $args = array( 'label' => __( 'Broken Link', 'broken_link' ), 'description' => __( 'Broken link CPT', 'broken_link' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'author', 'comments', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-editor-unlink', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => false, 'has_archive' => true, 'exclude_from_search' => true, 'publicly_queryable' => true, 'capability_type' => 'post', ); register_post_type( 'broken_link', $args ); } add_action( 'init', 'broken_link', 0 );