Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

lesson1000

if ( ! function_exists('cpt_lesson1000') ) {

// Register Custom Post Type
function cpt_lesson1000() {

	$labels = array(
		'name'                  => _x( 'Lessons1000', 'Post Type General Name', 'Lesson1000' ),
		'singular_name'         => _x( 'Lesson1000', 'Post Type Singular Name', 'Lesson1000' ),
		'menu_name'             => __( 'Lessons1000', 'Lesson1000' ),
		'name_admin_bar'        => __( 'Lesson1000', 'Lesson1000' ),
		'archives'              => __( 'Lesson1000 Archives', 'Lesson1000' ),
		'attributes'            => __( 'Lesson1000 Attributes', 'Lesson1000' ),
		'parent_item_colon'     => __( 'Parent Lesson1000:', 'Lesson1000' ),
		'all_items'             => __( 'All Lessons1000', 'Lesson1000' ),
		'add_new_item'          => __( 'Add New Lesson1000', 'Lesson1000' ),
		'add_new'               => __( 'Add New', 'Lesson1000' ),
		'new_item'              => __( 'New Lesson1000', 'Lesson1000' ),
		'edit_item'             => __( 'Edit Lesson1000', 'Lesson1000' ),
		'update_item'           => __( 'Update Lesson1000', 'Lesson1000' ),
		'view_item'             => __( 'View Lesson1000', 'Lesson1000' ),
		'view_items'            => __( 'View Lessons1000', 'Lesson1000' ),
		'search_items'          => __( 'Search Lesson1000', 'Lesson1000' ),
		'not_found'             => __( 'Not found', 'Lesson1000' ),
		'not_found_in_trash'    => __( 'Not found in Trash', 'Lesson1000' ),
		'featured_image'        => __( 'Featured Image', 'Lesson1000' ),
		'set_featured_image'    => __( 'Set featured image', 'Lesson1000' ),
		'remove_featured_image' => __( 'Remove featured image', 'Lesson1000' ),
		'use_featured_image'    => __( 'Use as featured image', 'Lesson1000' ),
		'insert_into_item'      => __( 'Insert into lesson', 'Lesson1000' ),
		'uploaded_to_this_item' => __( 'Uploaded to this lesson1000', 'Lesson1000' ),
		'items_list'            => __( 'Lessons1000 list', 'Lesson1000' ),
		'items_list_navigation' => __( 'Lessons1000 list navigation', 'Lesson1000' ),
		'filter_items_list'     => __( 'Filter lessons1000 list', 'Lesson1000' ),
	);
	$args = array(
		'label'                 => __( 'Lesson1000', 'Lesson1000' ),
		'description'           => __( 'Lesson Inglesando 1000', 'Lesson1000' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'thumbnail', 'comments', 'custom-fields', 'page-attributes' ),
		'taxonomies'            => array( 'part_speech1000' ),
		'hierarchical'          => true,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-editor-spellcheck',
		'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',
		'show_in_rest'          => true,
	);
	register_post_type( 'curso-ingles-basico', $args );

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

}