Skills
// Register Custom Post Type
function pf_skill() {
$labels = array(
'name' => 'Skills',
'singular_name' => 'Skill',
'menu_name' => 'Skill',
'name_admin_bar' => 'Skill',
'archives' => 'Skill Archives',
'attributes' => 'Skill Attributes',
'parent_item_colon' => 'Parent Item:',
'all_items' => 'All Items',
'add_new_item' => 'Add New Skill',
'add_new' => 'Add New skill',
'new_item' => 'New Skill',
'edit_item' => 'Edit Skill',
'update_item' => 'Update Skill',
'view_item' => 'View Skill',
'view_items' => 'View Skills',
'search_items' => 'Search Skill',
'not_found' => 'Skill Not found',
'not_found_in_trash' => 'Skill Not found in Trash',
'featured_image' => 'Featured Image',
'set_featured_image' => 'Set featured image',
'remove_featured_image' => 'Remove featured image',
'use_featured_image' => 'Use as featured image',
'insert_into_item' => 'Insert into item',
'uploaded_to_this_item' => 'Uploaded to this item',
'items_list' => 'Skills list',
'items_list_navigation' => 'Skills list navigation',
'filter_items_list' => 'Filter Skills list',
);
$args = array(
'label' => 'Skill',
'description' => 'A list of all my skills i've acquired',
'labels' => $labels,
'supports' => array( 'title', 'revisions' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-admin-customizer',
'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',
'show_in_rest' => true,
);
register_post_type( 'skill', $args );
}
add_action( 'init', 'pf_skill', 0 );