Home › Forums › Support › tag archive has no read more label › Reply To: tag archive has no read more label
February 26, 2022 at 9:12 am
#2134658
It is actually not a custom post type, it is the default renamed Post Post-Type. I did
function plgd_adjustPostLabel()
{
global $menu;
global $submenu;
$menu[5][0] = 'Products';
$submenu['edit.php'][5][0] = esc_html__('All Products', 'plgd');
$submenu['edit.php'][10][0] = esc_html__('Create Product', 'plgd');
$submenu['edit.php'][16][0] = esc_html__('Tags', 'plgd');
}
function plgd_adjustPostObject()
{
global $wp_post_types;
$wp_post_types['post']->menu_icon = 'dashicons-store';
$labels = &$wp_post_types['post']->labels;
$labels->name = esc_html__('Products', 'plgd');
$labels->singular_name = esc_html__('Product', 'plgd');
$labels->add_new = esc_html__('Add New', 'plgd');
$labels->add_new_item = esc_html__('Add New Product', 'plgd');
$labels->edit_item = esc_html__('Edit Product', 'plgd');
$labels->new_item = esc_html__('New Product', 'plgd');
$labels->view_item = esc_html__('View Product', 'plgd');
$labels->view_items = esc_html__('View Products', 'plgd');
$labels->search_items = esc_html__('Search Products', 'plgd');
$labels->not_found = esc_html__('No products found.', 'plgd');
$labels->not_found_in_trash = esc_html__('No products found in Trash.', 'plgd');
$labels->all_items = esc_html__('All Products', 'plgd');
$labels->archives = esc_html__('Product Archive', 'plgd');
$labels->attributes = esc_html__('Product Attributes', 'plgd');
$labels->insert_into_item = esc_html__('Insert into product', 'plgd');
$labels->uploaded_to_this_item = esc_html__('Uploaded to this product', 'plgd');
$labels->featured_image = esc_html__('Product image', 'plgd');
$labels->set_featured_image = esc_html__('Set product image', 'plgd');
$labels->remove_featured_image = esc_html__('Remove product image', 'plgd');
$labels->use_featured_image = esc_html__('Use as product image', 'plgd');
$labels->filter_items_list = esc_html__('Filter products list', 'plgd');
$labels->items_list_navigation = esc_html__('Products list navigation', 'plgd');
$labels->items_list = esc_html__('Products list', 'plgd');
$labels->item_published = esc_html__('Product published.', 'plgd');
$labels->item_published_privately = esc_html__('Product published privately.', 'plgd');
$labels->item_reverted_to_draft = esc_html__('Product reverted to draft.', 'plgd');
$labels->item_scheduled = esc_html__('Product scheduled.', 'plgd');
$labels->item_updated = esc_html__('Product updated.', 'plgd');
$labels->item_link = esc_html__('Product Link', 'plgd');
$labels->item_link_description =esc_html('A link to a Product.', 'plgd');
$labels->menu_name = esc_html__('Products', 'plgd');
$labels->name_admin_bar = esc_html__('Procduct', 'plgd');
}
add_action('admin_menu', 'plgd_adjustPostLabel');
add_action('init', 'plgd_adjustPostObject');
removing the add_action calls did not help.