Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Cursos – Funky Web

Cursos digitales

if ( ! function_exists('post_type_cursos') ) {

// Register Custom Post Type
function post_type_cursos() {

	$labels = array(
		'name'                  => _x( 'Cursos', 'Post Type General Name', 'text_domain' ),
		'singular_name'         => _x( 'Curso', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'             => __( 'Cursos', 'text_domain' ),
		'name_admin_bar'        => __( 'Cursos', 'text_domain' ),
		'archives'              => __( 'Listado de Cursos', 'text_domain' ),
		'attributes'            => __( 'Atributos del Curso', 'text_domain' ),
		'parent_item_colon'     => __( 'Curso Principal:', 'text_domain' ),
		'all_items'             => __( 'Todos los Cursos', 'text_domain' ),
		'add_new_item'          => __( 'Agregar Nuevo Curso', 'text_domain' ),
		'add_new'               => __( 'Agregar Nuevo', 'text_domain' ),
		'new_item'              => __( 'Nuevo Curso', 'text_domain' ),
		'edit_item'             => __( 'Editar Curso', 'text_domain' ),
		'update_item'           => __( 'Actualizar Curso', 'text_domain' ),
		'view_item'             => __( 'Ver Curso', 'text_domain' ),
		'view_items'            => __( 'Ver Cursos', 'text_domain' ),
		'search_items'          => __( 'Buscar Curso', 'text_domain' ),
		'not_found'             => __( 'No se encontraron Cursos.', 'text_domain' ),
		'not_found_in_trash'    => __( 'No se encontraron Cursos en la papelera.', 'text_domain' ),
		'featured_image'        => __( 'Portada del Curso', 'text_domain' ),
		'set_featured_image'    => __( 'Establecer portada', 'text_domain' ),
		'remove_featured_image' => __( 'Quitar portada', 'text_domain' ),
		'use_featured_image'    => __( 'Usar como portada', 'text_domain' ),
		'insert_into_item'      => __( 'Agregar al Curso', 'text_domain' ),
		'uploaded_to_this_item' => __( 'Subido a este Curso', 'text_domain' ),
		'items_list'            => __( 'Lista de Cursos', 'text_domain' ),
		'items_list_navigation' => __( 'Navegación lista de Cursos', 'text_domain' ),
		'filter_items_list'     => __( 'Filtrar lista de Cursos', 'text_domain' ),
	);
	$args = array(
		'label'                 => __( 'Curso', 'text_domain' ),
		'description'           => __( 'Cursos de suscripción para Funky web', 'text_domain' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'thumbnail', 'comments' ),
		'taxonomies'            => array( 'tag_cursos', 'taxonomy_cursos' ),
		'hierarchical'          => true,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-laptop',
		'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( 'post_type_cursos', $args );

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

}