Skip to content

Instantly share code, notes, and snippets.

@everaldomatias
Last active November 8, 2016 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save everaldomatias/df39c4613d775c3528350cdca94d5756 to your computer and use it in GitHub Desktop.
Save everaldomatias/df39c4613d775c3528350cdca94d5756 to your computer and use it in GitHub Desktop.
function change_labels_post( $labels ) {
//$labels->name = 'Posts';
//$labels->singular_name = 'Post';
//$labels->add_new = 'Adicionar Novo';
//$labels->add_new_item = 'Adicionar novo post';
//$labels->edit_item = 'Editar post';
//$labels->new_item = 'Novo Post';
//$labels->view_item = 'Ver Post';
//$labels->search_items = 'Pesquisar posts';
//$labels->not_found = 'Nenhum post encontrado';
//$labels->not_found_in_trash = 'Nenhum post encontrado na Lixeira';
//$labels->parent_item_colon = '';
//$labels->all_items = 'Todos os Posts';
//$labels->archives = 'Arquivos de posts';
//$labels->insert_into_item = 'Inserir no post';
//$labels->uploaded_to_this_item = 'Anexadas a este post';
//$labels->featured_image = 'Imagem destacada';
//$labels->set_featured_image = 'Definir imagem destacada';
//$labels->remove_featured_image = 'Remover imagem destacada';
//$labels->use_featured_image = 'Usar como Imagem Destacada';
//$labels->filter_items_list = 'Filtrar lista de posts';
//$labels->items_list_navigation = 'Navegação da lista de posts';
//$labels->items_list = 'Lista de posts';
//$labels->menu_name = 'Posts';
//$labels->name_admin_bar = 'Post';
//var_dump( $labels );
return $labels;
}
add_filter( 'post_type_labels_post', 'change_labels_post', 10, 1 );
@everaldomatias
Copy link
Author

Adicione essa função em seu arquivo functions.php. Para alterar os labels basta 'descomentar' a linha e substituir a string pelo que deseja.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment