Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Depoimentos

if ( ! function_exists('claudio_puga_testimonials') ) {

// Register Custom Post Type
function claudio_puga_testimonials() {

	$labels = array(
		'name'                => _x( 'Depoimentos', 'Post Type General Name', 'claudio-puga' ),
		'singular_name'       => _x( 'Depoimento', 'Post Type Singular Name', 'claudio-puga' ),
		'menu_name'           => __( 'Depoimentos', 'claudio-puga' ),
		'name_admin_bar'      => __( 'Depoimentos', 'claudio-puga' ),
		'parent_item_colon'   => __( 'Depoimento Pai:', 'claudio-puga' ),
		'all_items'           => __( 'Todos os Depoimentos', 'claudio-puga' ),
		'add_new_item'        => __( 'Novo Depoimento', 'claudio-puga' ),
		'add_new'             => __( 'Novo Depoimento', 'claudio-puga' ),
		'new_item'            => __( 'Novo Depoimento', 'claudio-puga' ),
		'edit_item'           => __( 'Editar Depoimento', 'claudio-puga' ),
		'update_item'         => __( 'Atualzar Depoimento', 'claudio-puga' ),
		'view_item'           => __( 'Visualizar Depoimento', 'claudio-puga' ),
		'search_items'        => __( 'Buscar Depoimento', 'claudio-puga' ),
		'not_found'           => __( 'Depoimento Não Encontrado', 'claudio-puga' ),
		'not_found_in_trash'  => __( 'Depoimentos não Encontrado no Lixo', 'claudio-puga' ),
	);
	$args = array(
		'label'               => __( 'Depoimento', 'claudio-puga' ),
		'description'         => __( 'Depoimentos', 'claudio-puga' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes', ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'menu_position'       => 20,
		'menu_icon'           => 'dashicons-format-chat',
		'show_in_admin_bar'   => true,
		'show_in_nav_menus'   => true,
		'can_export'          => true,
		'has_archive'         => false,		
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'rewrite'             => false,
		'capability_type'     => 'page',
	);
	register_post_type( 'testimonials', $args );

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

}