Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Aquanaut Call 2 actions

// Register Custom Post Type
function call2action() {

	$labels = array(
		'name'                => 'Call 2 actions',
		'singular_name'       => 'Call 2 action',
		'menu_name'           => 'Call 2 action',
		'name_admin_bar'      => 'Call 2 action',
		'parent_item_colon'   => 'Bovenliggende action',
		'all_items'           => 'Alle actions',
		'add_new_item'        => 'Nieuwe action toevoegen',
		'add_new'             => 'Toevoegen',
		'new_item'            => 'Nieuwe action',
		'edit_item'           => 'Action bewerken',
		'update_item'         => 'Action bijwerken',
		'view_item'           => 'Action bekijken',
		'search_items'        => 'Actions zoeken',
		'not_found'           => 'Geen resultaten',
		'not_found_in_trash'  => 'Prullenbak is leeg',
	);
	$args = array(
		'label'               => 'call2action',
		'labels'              => $labels,
		'supports'            => array( 'title', ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'menu_position'       => 20,
		'menu_icon'           => 'dashicons-megaphone',
		'show_in_admin_bar'   => true,
		'show_in_nav_menus'   => true,
		'can_export'          => true,
		'has_archive'         => false,		
		'exclude_from_search' => true,
		'publicly_queryable'  => true,
		'rewrite'             => false,
		'capability_type'     => 'page',
	);
	register_post_type( 'call2action', $args );

}

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