Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Clientes

// Register Custom Post Type
function custom_post_type() {

	$labels = array(
		'name'                => _x( 'Clientes', 'Post Type General Name', 'text_domain' ),
		'singular_name'       => _x( 'Cliente', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'           => __( 'Clientes', 'text_domain' ),
		'name_admin_bar'      => __( 'Clientes', 'text_domain' ),
		'parent_item_colon'   => __( 'Cliente relacionado', 'text_domain' ),
		'all_items'           => __( 'Todos os clientes', 'text_domain' ),
		'add_new_item'        => __( 'Adicionar novo cliente', 'text_domain' ),
		'add_new'             => __( 'Adicionar novo', 'text_domain' ),
		'new_item'            => __( 'Novo Cliente', 'text_domain' ),
		'edit_item'           => __( 'Editar Clietne', 'text_domain' ),
		'update_item'         => __( 'Atualizar cliente', 'text_domain' ),
		'view_item'           => __( 'Ver cliente', 'text_domain' ),
		'search_items'        => __( 'Procurar clientes', 'text_domain' ),
		'not_found'           => __( 'Não encontrado', 'text_domain' ),
		'not_found_in_trash'  => __( 'Nenhum na lixeira', 'text_domain' ),
	);
	$args = array(
		'label'               => __( 'clientes', 'text_domain' ),
		'description'         => __( 'Clientes da empresa', 'text_domain' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'thumbnail', ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'menu_position'       => 5,
		'show_in_admin_bar'   => true,
		'show_in_nav_menus'   => true,
		'can_export'          => true,
		'has_archive'         => false,
		'exclude_from_search' => true,
		'publicly_queryable'  => true,
		'capability_type'     => 'page',
	);
	register_post_type( 'clientes', $args );

}

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