gaming
Ejemplo de custom de gaming
if ( ! function_exists('gaming_content_post_type') ) { // Register Custom Post Type function gaming_content_post_type() { $labels = array( 'name' => _x( 'Gaming Content Types', 'Post Type General Name', 'gaming_content_post_type' ), 'singular_name' => _x( 'Gaming Content Type', 'Post Type Singular Name', 'gaming_content_post_type' ), 'menu_name' => __( 'Gaming Content Types', 'gaming_content_post_type' ), 'name_admin_bar' => __( 'Gaming Contents', 'gaming_content_post_type' ), 'archives' => __( 'Gaming Archives', 'gaming_content_post_type' ), 'attributes' => __( 'Gaming Attributes', 'gaming_content_post_type' ), 'parent_item_colon' => __( 'Gaming Product:', 'gaming_content_post_type' ), 'all_items' => __( 'All Gaming Contents', 'gaming_content_post_type' ), 'add_new_item' => __( 'Add New Gaming Contents', 'gaming_content_post_type' ), 'add_new' => __( 'Add New', 'gaming_content_post_type' ), 'new_item' => __( 'New Item Gaming Content', 'gaming_content_post_type' ), 'edit_item' => __( 'Edit Gaming Content', 'gaming_content_post_type' ), 'update_item' => __( 'Update Gaming Content', 'gaming_content_post_type' ), 'view_item' => __( 'View Gaming Content', 'gaming_content_post_type' ), 'view_items' => __( 'View Gaming Content Items', 'gaming_content_post_type' ), 'search_items' => __( 'Search Gaming Contents', 'gaming_content_post_type' ), 'not_found' => __( 'No Gaming Contents found', 'gaming_content_post_type' ), 'not_found_in_trash' => __( 'Not found in Trash', 'gaming_content_post_type' ), 'featured_image' => __( 'Featured Image', 'gaming_content_post_type' ), 'set_featured_image' => __( 'Set featured image', 'gaming_content_post_type' ), 'remove_featured_image' => __( 'Remove featured image', 'gaming_content_post_type' ), 'use_featured_image' => __( 'Use as featured image', 'gaming_content_post_type' ), 'insert_into_item' => __( 'Insert into item', 'gaming_content_post_type' ), 'uploaded_to_this_item' => __( 'Uploaded to this item', 'gaming_content_post_type' ), 'items_list' => __( 'Items list', 'gaming_content_post_type' ), 'items_list_navigation' => __( 'Items list navigation', 'gaming_content_post_type' ), 'filter_items_list' => __( 'Filter items list', 'gaming_content_post_type' ), ); $args = array( 'label' => __( 'Gaming Content Type', 'gaming_content_post_type' ), 'description' => __( 'Gaming Content Type Description', 'gaming_content_post_type' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats' ), 'taxonomies' => array( 'Gaming', ' 3ds PS4 XONE Switch' ), 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-desktop', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'query_var' => 'gaming', 'capability_type' => 'page', ); register_post_type( 'gaming_content_type', $args ); } add_action( 'init', 'gaming_content_post_type', 0 ); }