Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

User Journeys

// Register Custom Post Type
function register_user_journey_cpt() {

	$labels = array(
		'name'                => _x( 'User Journeys', 'Post Type General Name', 'climbrs' ),
		'singular_name'       => _x( 'User Journey', 'Post Type Singular Name', 'climbrs' ),
		'menu_name'           => __( 'User Journeys', 'climbrs' ),
		'parent_item_colon'   => __( '', 'climbrs' ),
		'all_items'           => __( 'All User Journeys', 'climbrs' ),
		'view_item'           => __( 'View User Journey', 'climbrs' ),
		'add_new_item'        => __( 'Add New User Journey', 'climbrs' ),
		'add_new'             => __( 'Add New User Journey', 'climbrs' ),
		'edit_item'           => __( 'Edit User Journey', 'climbrs' ),
		'update_item'         => __( 'Update User Journey', 'climbrs' ),
		'search_items'        => __( 'Search User Journey', 'climbrs' ),
		'not_found'           => __( 'Not found', 'climbrs' ),
		'not_found_in_trash'  => __( 'Not found in Trash', 'climbrs' ),
	);
	$args = array(
		'label'               => __( 'user_journey', 'climbrs' ),
		'description'         => __( 'Stories to sell our app.', 'climbrs' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'thumbnail', ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'show_in_nav_menus'   => false,
		'show_in_admin_bar'   => false,
		'menu_position'       => 5,
		'menu_icon'           => 'dashicons-groups',
		'can_export'          => true,
		'has_archive'         => false,
		'exclude_from_search' => true,
		'publicly_queryable'  => false,
		'capability_type'     => 'page',
	);
	register_post_type( 'user_journey', $args );

}

// Hook into the 'init' action
add_action( 'init', 'register_user_journey_cpt', 0 );