-
-
Notifications
You must be signed in to change notification settings - Fork 95
Other admin parameters
Along with admin columns and admin filters, several other parameters are available that provide functionality in the admin area.
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'
) );
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'
) );
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
) );
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
) );
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.