Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Avances

// Register Custom Post Type
function rapp_funcion_avance() {

	$labels = array(
		'name'                  => _x( 'Avances', 'Post Type General Name', 'Avance' ),
		'singular_name'         => _x( 'Avance', 'Post Type Singular Name', 'Avance' ),
		'menu_name'             => __( 'Avances', 'Avance' ),
		'name_admin_bar'        => __( 'Avance', 'Avance' ),
		'archives'              => __( 'Lista avances', 'Avance' ),
		'attributes'            => __( 'Datos Avance', 'Avance' ),
		'parent_item_colon'     => __( 'Avance Padre:', 'Avance' ),
		'all_items'             => __( 'Todos los avances', 'Avance' ),
		'add_new_item'          => __( 'Agregar Avance', 'Avance' ),
		'add_new'               => __( 'Agregar', 'Avance' ),
		'new_item'              => __( 'Nuevo', 'Avance' ),
		'edit_item'             => __( 'Editar', 'Avance' ),
		'update_item'           => __( 'Actualizar', 'Avance' ),
		'view_item'             => __( 'Ver', 'Avance' ),
		'view_items'            => __( 'Ver Avances', 'Avance' ),
		'search_items'          => __( 'Buscar', 'Avance' ),
		'not_found'             => __( 'No encontrado', 'Avance' ),
		'not_found_in_trash'    => __( 'No encontrado en papalera', 'Avance' ),
		'featured_image'        => __( 'Imagen destacada', 'Avance' ),
		'set_featured_image'    => __( 'Configura Imagen destacada', 'Avance' ),
		'remove_featured_image' => __( 'Borrar Imagen destacada', 'Avance' ),
		'use_featured_image'    => __( 'Usar como Imagen destacada', 'Avance' ),
		'insert_into_item'      => __( 'Agregar al Avance', 'Avance' ),
		'uploaded_to_this_item' => __( 'Cargar a este avance', 'Avance' ),
		'items_list'            => __( 'Lista de avances', 'Avance' ),
		'items_list_navigation' => __( 'Lista Navegación', 'Avance' ),
		'filter_items_list'     => __( 'Filtrar lista', 'Avance' ),
	);
	$capabilities = array(
		'edit_post'             => 'edit_post',
		'read_post'             => 'read_post',
		'delete_post'           => 'delete_post',
		'edit_posts'            => 'edit_posts',
		'edit_others_posts'     => 'edit_others_posts',
		'publish_posts'         => 'publish_posts',
		'read_private_posts'    => 'read_private_posts',
	);
	$args = array(
		'label'                 => __( 'Avance', 'Avance' ),
		'description'           => __( 'Avance de caso', 'Avance' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'custom-fields', 'page-attributes', 'post-formats' ),
		'taxonomies'            => array( 'category', 'post_tag' ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-clipboard',
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => true,
		'can_export'            => true,
		'has_archive'           => true,
		'exclude_from_search'   => true,
		'publicly_queryable'    => true,
		'capabilities'          => $capabilities,
	);
	register_post_type( 'rapp_avance', $args );

}
add_action( 'init', 'rapp_funcion_avance', 0 );