Skip to content

Other admin parameters

John Blackbourn edited this page Oct 17, 2015 · 12 revisions

Along with admin columns and admin filters, several other parameters are available that provide functionality in the admin area.

Featured Image Name

The "Featured Image" text used in various places in the admin area can be replaced with a more appropriate name for the featured image for your post type by using the featured_image parameter. For example:

register_extended_post_type( 'company', array(

	'featured_image' => 'Corporate Logo'

) );

"Enter Title Here" Value

The "Enter Title Here" text used as the placeholder text in the title field on the editing screen for your post type can be replaced with more appropriate text by using the enter_title_here parameter. For example:

register_extended_post_type( 'company', array(

	'enter_title_here' => 'Company Name'

) );

Disable Quick Edit

Quick Edit functionality is enabled for all post types by default. Quick Edit can be disabled if you wish by passing boolean false to the quick_edit parameter.

register_extended_post_type( 'article', array(

	'quick_edit' => false

) );

Dashboard "At a Glance" Item

An entry is added to the "At a Glance" dashboard widget for your post type by default. It can be disabled if you wish by passing boolean false to the dashboard_glance parameter.

register_extended_post_type( 'article', array(

	'dashboard_glance' => false

) );

Archive Links in Nav Menus

Adding a post type archive link to a nav menu in WordPress usually requires you to use a custom link and to paste in the post type archive URL. Extended CPTs removes this need by automatically adding a post type archive entry to the top of the list of your custom post type posts on the nav menus administration screen.

Clone this wiki locally