[Plugin: Flexible Custom Post Type] Additional Labels
-
Just a quick suggestion to complete the Labels for the Custom Post Types. At the moment, when adding a new custom post type, the Add page say ‘Add New Post’ instead of, say, ‘Add New Product’.
To address this, I’ve edited the register_post_type array starting on Line 86. Firstly, by removing the label and singular label parameters, and adding this parameter to the array:
'labels' => array( 'name' => __( $post_type['label'] ), 'singular_name' => __( $post_type['singular_label'] ), 'add_new' => __( 'Add New' ), 'add_new_item' => __( 'Add New '.$post_type['singular_label'] ), 'edit' => __( 'Edit' ), 'edit_item' => __( 'Edit '.$post_type['singular_label'] ), 'new_item' => __( 'New '.$post_type['singular_label'] ), 'view' => __( 'View '.$post_type['singular_label'] ), 'view_item' => __( 'View '.$post_type['singular_label'] ), 'search_items' => __( 'Search '.$post_type['label'] ), 'not_found' => __( 'No '.$post_type['label'].' found' ), 'not_found_in_trash' => __( 'No '.$post_type['label'].' found in Trash' ), 'parent' => __( 'Parent '.$post_type['singular_label'] ), ),
https://www.ads-software.com/extend/plugins/flexible-custom-post-type/
- The topic ‘[Plugin: Flexible Custom Post Type] Additional Labels’ is closed to new replies.