SecuPress Terminology
The SecuPress Security Terminology post type.
// Register Custom Post Type
function sp_register_terminology() {
$labels = array(
'name' => _x( 'Terminologies', 'Post Type General Name', 'secupress' ),
'singular_name' => _x( 'Terminology', 'Post Type Singular Name', 'secupress' ),
'menu_name' => __( 'Terminology', 'secupress' ),
'name_admin_bar' => __( 'Terminology', 'secupress' ),
'archives' => __( 'Terminology Archives', 'secupress' ),
'parent_item_colon' => __( 'Parent Item:', 'secupress' ),
'all_items' => __( 'All Terminologies', 'secupress' ),
'add_new_item' => __( 'Add New Item', 'secupress' ),
'add_new' => __( 'Add New', 'secupress' ),
'new_item' => __( 'New Terminology', 'secupress' ),
'edit_item' => __( 'Edit Terminology', 'secupress' ),
'update_item' => __( 'Update Terminology', 'secupress' ),
'view_item' => __( 'View Terminology', 'secupress' ),
'search_items' => __( 'Search Terminology', 'secupress' ),
'not_found' => __( 'Not found', 'secupress' ),
'not_found_in_trash' => __( 'Not found in Trash', 'secupress' ),
'featured_image' => __( 'Featured Image', 'secupress' ),
'set_featured_image' => __( 'Set featured image', 'secupress' ),
'remove_featured_image' => __( 'Remove featured image', 'secupress' ),
'use_featured_image' => __( 'Use as featured image', 'secupress' ),
'insert_into_item' => __( 'Insert into Terminology', 'secupress' ),
'uploaded_to_this_item' => __( 'Uploaded to this Terminology', 'secupress' ),
'items_list' => __( 'Terminologies list', 'secupress' ),
'items_list_navigation' => __( 'Terminologies list navigation', 'secupress' ),
'filter_items_list' => __( 'Filter terminologies list', 'secupress' ),
);
$args = array(
'label' => __( 'Terminology', 'secupress' ),
'description' => __( 'Security Terminology', 'secupress' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'revisions', 'custom-fields', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 20,
'menu_icon' => 'dashicons-welcome-learn-more',
'show_in_admin_bar' => false,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => 'terminology',
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'post',
);
register_post_type( 'terminology', $args );
}
add_action( 'init', 'sp_register_terminology', 0 );