php Plugin Name Casino Tools Plugin URI http nettuts com Description C

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/*
Plugin Name: Casino Tools
Plugin URI: http://nettuts.com
Description: Casino tools description
Version: 1.0
Author: Anoni,
Author URI: http://google.com
*/
// Register Custom Post Type
function casions_post_type() {
$labels = array(
'name' => _x( 'Casinos', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Casino', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Casion', 'text_domain' ),
'parent_item_colon' => __( 'Parent Casino:', 'text_domain' ),
'all_items' => __( 'All Casinos', 'text_domain' ),
'view_item' => __( 'View Casino', 'text_domain' ),
'add_new_item' => __( 'Add New Casino', 'text_domain' ),
'add_new' => __( 'New Casino', 'text_domain' ),
'edit_item' => __( 'Edit Casino', 'text_domain' ),
'update_item' => __( 'Update Casino', 'text_domain' ),
'search_items' => __( 'Search casinos', 'text_domain' ),
'not_found' => __( 'No casinos found', 'text_domain' ),
'not_found_in_trash' => __( 'No casinos found in Trash', 'text_domain' ),
);
$args = array(
'label' => __( 'casino', 'text_domain' ),
'description' => __( 'Casino information pages', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'custom-fields', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 5,
'menu_icon' => '',
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'casino', $args );
}
// Hook into the 'init' action
add_action( 'init', 'casions_post_type', 0 );