Web Tools
For Web Tools CPT used under Frugal Web Guy
if ( ! function_exists('my_cpts') ) {
// Register Custom Post Type
function my_cpts() {
$labels = array(
'name' => _x( 'Tool', 'Post Type General Name', 'my_simple_theme' ),
'singular_name' => _x( 'Tools', 'Post Type Singular Name', 'my_simple_theme' ),
'menu_name' => __( 'Web Tools', 'my_simple_theme' ),
'name_admin_bar' => __( 'Web Tool', 'my_simple_theme' ),
'parent_item_colon' => __( 'Parent Item:', 'my_simple_theme' ),
'all_items' => __( 'All Tools', 'my_simple_theme' ),
'add_new_item' => __( 'Add New Tool', 'my_simple_theme' ),
'add_new' => __( 'Add New', 'my_simple_theme' ),
'new_item' => __( 'New Tool', 'my_simple_theme' ),
'edit_item' => __( 'Edit Tool', 'my_simple_theme' ),
'update_item' => __( 'Update Tool', 'my_simple_theme' ),
'view_item' => __( 'View Tool', 'my_simple_theme' ),
'search_items' => __( 'Search Tool', 'my_simple_theme' ),
'not_found' => __( 'No tools found', 'my_simple_theme' ),
'not_found_in_trash' => __( 'No tools found in Trash', 'my_simple_theme' ),
);
$args = array(
'label' => __( 'web_tools', 'my_simple_theme' ),
'description' => __( 'Tools from Around the Web for use with your site.', 'my_simple_theme' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'revisions', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-hammer',
'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',
);
register_post_type( 'web_tools', $args );
}
// Hook into the 'init' action
add_action( 'init', 'my_cpts', 0 );
}