Skip to content

Instantly share code, notes, and snippets.

@mbeall
Created December 23, 2015 04:04
Show Gist options
  • Save mbeall/6f6f6a1cb20d414f0bd8 to your computer and use it in GitHub Desktop.
Save mbeall/6f6f6a1cb20d414f0bd8 to your computer and use it in GitHub Desktop.
WordPress 4.4 Labels
<?php
$labels = array(
'name' => _x( '__POST__s', 'post type general name', 'steel' ),
'singular_name' => _x( '__POST__', 'post type singular name', 'steel' ),
'menu_name' => __( '__MENU__', 'steel' ),
'name_admin_bar' => __( '__POST__s', 'steel' ),
'add_new' => __( 'Add New', 'steel' ),
'add_new_item' => __( 'Add New __POST__', 'steel' ),
'edit_item' => __( 'Edit __POST__', 'steel' ),
'new_item' => __( 'New __POST__', 'steel' ),
'view_item' => __( 'View __POST__', 'steel' ),
'update_item' => __( 'Update', 'steel' ),
'search_items' => __( 'Search __POST__s', 'steel' ),
'not_found' => __( 'No __post__s found.', 'steel' ),
'not_found_in_trash' => __( 'No __post__s found in Trash.', 'steel' ),
'all_items' => __( 'All __POST__s', 'steel' ),
'archives' => __( '__POST__ Archives', 'steel' ),
'insert_into_item' => __( 'Insert into __post__', 'steel' ),
'uploaded_to_this_item' => __( 'Uploaded to this __post__', 'steel' ),
'featured_image' => __( 'Featured Image', 'steel' ),
'set_featured_image' => __( 'Set featured image', 'steel' ),
'remove_featured_image' => __( 'Remove featured image', 'steel' ),
'use_featured_image' => __( 'Use as featured image', 'steel' ),
'filter_items_list' => __( 'Filter __post__s list', 'steel' ),
'items_list_navigation' => __( '__POST__s list navigation', 'steel' ),
'items_list' => __( '__POST__s list', 'steel' ),
);
<?php
$labels = array(
'name' => _x( '__TERM__s', 'taxonomy general name', 'steel' ),
'singular_name' => _x( '__TERM__', 'taxonomy singular name', 'steel' ),
'menu_name' => __( '__TERM__', 'steel' ),
'search_items' => __( 'Search __TERM__s', 'steel' ),
'all_items' => __( 'All __TERM__s', 'steel' ),
'parent_item' => __( 'Parent __TERM__', 'steel' ),
'parent_item_colon' => __( 'Parent __TERM__:', 'steel' ),
'edit_item' => __( 'Edit __TERM__', 'steel' ),
'view_item' => __( 'View __TERM__', 'steel' ),
'update_item' => __( 'Update __TERM__', 'steel' ),
'add_new_item' => __( 'Add New __TERM__', 'steel' ),
'new_item_name' => __( 'New __TERM__ Name', 'steel' ),
'not_found' => __( 'No __term__s found.', 'steel' ),
'no_terms' => __( 'No __term__s', 'steel' ),
'items_list_navigation' => __( '__TERM__s list navigation', 'steel' ),
'items_list' => __( '__TERM__s list', 'steel' ),
);
<?php
$labels = array(
'name' => _x( '__TERM__s', 'taxonomy general name', 'steel' ),
'singular_name' => _x( '__TERM__', 'taxonomy singular name', 'steel' ),
'menu_name' => __( '__TERM__s', 'steel' ),
'search_items' => __( 'Search __TERM__s', 'steel' ),
'popular_items' => __( 'Popular __TERM__s', 'steel' ),
'all_items' => __( 'All __TERM__s', 'steel' ),
'edit_item' => __( 'Edit __TERM__', 'steel' ),
'view_item' => __( 'View __TERM__', 'steel' ),
'update_item' => __( 'Update __TERM__', 'steel' ),
'add_new_item' => __( 'Add New __TERM__', 'steel' ),
'new_item_name' => __( 'New __TERM__ Name', 'steel' ),
'separate_items_with_commas' => __( 'Separate __term__s with commas' ),
'add_or_remove_items' => __( 'Add or remove __term__s' ),
'choose_from_most_used' => __( 'Choose from the most used __term__s' ),
'not_found' => __( 'No __term__s found.', 'steel' ),
'no_terms' => __( 'No __term__s', 'steel' ),
'items_list_navigation' => __( '__TERM__s list navigation', 'steel' ),
'items_list' => __( '__TERM__s list', 'steel' ),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment