Skip to content

Refresh scaffolded post type labels#84

Merged
miya0001 merged 1 commit intomasterfrom
72-refresh-labels
Oct 31, 2017
Merged

Refresh scaffolded post type labels#84
miya0001 merged 1 commit intomasterfrom
72-refresh-labels

Conversation

@danielbachhuber
Copy link
Member

  • Add missing labels.
  • Ensure proper capitalized versions of each.

Fixes #72

* Add missing labels.
* Ensure proper capitalized versions of each.
@danielbachhuber danielbachhuber added this to the 1.0.11 milestone Oct 31, 2017
@danielbachhuber danielbachhuber added the command:scaffold-post-type Related to 'scaffold post-type' command label Oct 31, 2017
@danielbachhuber
Copy link
Member Author

$ wp scaffold post-type foo --raw
	register_post_type( 'foo', array(
		'labels'            => array(
			'name'                  => __( 'Foos', 'YOUR-TEXTDOMAIN' ),
			'singular_name'         => __( 'Foo', 'YOUR-TEXTDOMAIN' ),
			'all_items'             => __( 'All Foos', 'YOUR-TEXTDOMAIN' ),
			'archives'              => __( 'Foo Archives', 'YOUR-TEXTDOMAIN' ),
			'attributes'            => __( 'Foo Attributes', 'YOUR-TEXTDOMAIN' ),
			'insert_into_item'      => __( 'Insert into foo', 'YOUR-TEXTDOMAIN' ),
			'uploaded_to_this_item' => __( 'Uploaded to this foo', 'YOUR-TEXTDOMAIN' ),
			'featured_image'        => _x( 'Featured Image', 'foo', 'YOUR-TEXTDOMAIN' ),
			'set_featured_image'    => _x( 'Set featured image', 'foo', 'YOUR-TEXTDOMAIN' ),
			'remove_featured_image' => _x( 'Remove featured image', 'foo', 'YOUR-TEXTDOMAIN' ),
			'use_featured_image'    => _x( 'Use as featured image', 'foo', 'YOUR-TEXTDOMAIN' ),
			'filter_items_list'     => __( 'Filter foos list', 'YOUR-TEXTDOMAIN' ),
			'items_list_navigation' => __( 'Foos list navigation', 'YOUR-TEXTDOMAIN' ),
			'items_list'            => __( 'Foos list', 'YOUR-TEXTDOMAIN' ),
			'new_item'              => __( 'New Foo', 'YOUR-TEXTDOMAIN' ),
			'add_new'               => __( 'Add New', 'YOUR-TEXTDOMAIN' ),
			'add_new_item'          => __( 'Add New Foo', 'YOUR-TEXTDOMAIN' ),
			'edit_item'             => __( 'Edit Foo', 'YOUR-TEXTDOMAIN' ),
			'view_item'             => __( 'View Foo', 'YOUR-TEXTDOMAIN' ),
			'view_items'            => __( 'View Foos', 'YOUR-TEXTDOMAIN' ),
			'search_items'          => __( 'Search foos', 'YOUR-TEXTDOMAIN' ),
			'not_found'             => __( 'No foos found', 'YOUR-TEXTDOMAIN' ),
			'not_found_in_trash'    => __( 'No foos found in trash', 'YOUR-TEXTDOMAIN' ),
			'parent_item_colon'     => __( 'Parent Foo:', 'YOUR-TEXTDOMAIN' ),
			'menu_name'             => __( 'Foos', 'YOUR-TEXTDOMAIN' ),
		),
		'public'            => true,
		'hierarchical'      => false,
		'show_ui'           => true,
		'show_in_nav_menus' => true,
		'supports'          => array( 'title', 'editor' ),
		'has_archive'       => true,
		'rewrite'           => true,
		'query_var'         => true,
		'menu_icon'         => 'dashicons-admin-post',
		'show_in_rest'      => true,
		'rest_base'         => 'foo',
		'rest_controller_class' => 'WP_REST_Posts_Controller',
	) );

@danielbachhuber danielbachhuber requested a review from a team October 31, 2017 13:16
@miya0001 miya0001 merged commit 7889053 into master Oct 31, 2017
@miya0001 miya0001 deleted the 72-refresh-labels branch October 31, 2017 14:03
danielbachhuber pushed a commit that referenced this pull request Nov 18, 2022
Refresh scaffolded post type labels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:scaffold-post-type Related to 'scaffold post-type' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants